ANTLR Tool version 4.8 used for code generation does not match the current runtime version 4.7.1

  1. 换了 spark-3.1.3-bin-hadoop2.7 包,问题依旧。
  2. 替换成 tispark-assembly-3.1-2.5.1.jar 后。
    ANTLR 不匹配的警告仍然存在,但是 WARN HttpClientUtil: Failed to send HTTP get request.的警告消失了,也可正常执行SQL查询了
  3. 另外,spark-defaults.conf 只保留了如下配置项:
    spark.sql.extensions org.apache.spark.sql.TiExtensions
    spark.tispark.pd.addresses 192.168.3.221:2379,192.168.3.222:2379,192.168.3.223:2379
    spark.tispark.write.allow_spark_sql true
    spark.master spark://192.168.3.227:7077