spark-sql> show database;
ANTLR Tool version 4.8 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.8 used for parser compilation does not match the current runtime version 4.7.122/07/27 22:53:34 WARN HttpClientUtil: Failed to send HTTP get request.
我是独立部署的TiDB,OS是CentOS7.9。将 tispark-assembly-3.1_2.12-3.0.1.jar替换为tispark-assembly-3.1-2.5.1.jar之后,ANTLR的警告仍然存在。但是WARN HttpClientUtil: Failed to send HTTP get request.这个错误消失了。也可以正常执行SQL语句。
spark-sql> use tidb_catalog.mysql;
22/07/29 03:38:08 WARN HttpClientUtil: Failed to send HTTP get request.
22/07/29 03:38:08 WARN TiSparkTeleInfo$: Failed to get PD version For input string: "2379,192.168.3.222:2379,192.168.3.223:2379"
22/07/29 03:38:08 WARN ObjectStore: Failed to get database global_temp, returning NoSuchObjectException
Time taken: 2.741 seconds
spark-sql> use tidb_catalog.mysql;
Time taken: 0.025 seconds
spark-sql> select * from user;
22/07/29 03:38:19 WARN package: Truncated the string representation of a plan since it was too large. This behavior can be adjusted by setting 'spark.sql.debug.maxToStringFields'.
% root *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B mysql_native_password Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y Y Y
% admin *4ACFE3202A5FF5CF467898FC58AAB1D615029441 mysql_native_password Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y Y Y
Time taken: 2.552 seconds, Fetched 2 row(s)
spark-sql> use tidb_catalog.mysql;
22/07/29 03:32:35 WARN ObjectStore: Failed to get database global_temp, returning NoSuchObjectException
Time taken: 2.641 seconds
spark-sql> use tidb_catalog.mysql;
Time taken: 0.024 seconds
spark-sql> select * from user;
22/07/29 03:32:42 WARN package: Truncated the string representation of a plan since it was too large. This behavior can be adjusted by setting 'spark.sql.debug.maxToStringFields'.
% root *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B mysql_native_password Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y Y Y
% admin *4ACFE3202A5FF5CF467898FC58AAB1D615029441 mysql_native_password Y Y Y Y Y Y Y Y Y Y YY Y Y Y Y Y Y Y Y Y Y Y Y Y Y Y N Y Y Y Y Y
Time taken: 2.78 seconds, Fetched 2 row(s)
ANTLR Tool version 4.8 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.8 used for parser compilation does not match the current runtime version 4.7.1ANTLR Tool version 4.8 used for code generation does not match the current runtime version 4.7.1ANTLR Runtime version 4.8 used for parser compilation does not match the current runtime version 4.7.1default
22/07/29 07:51:42 WARN PDClient: failed to get member from pd server.
2022/7/29 15:51:42 com.pingcap.tikv.exception.TiKVException: Failed to build NettyChannelBuilder
加个空格的错误:
java.lang.IllegalArgumentException: Illegal character in authority at index 7: http://basic-pd.tidb-cluster: 2379
似乎不是因为半角全角或者空格的问题引起的:
22/07/27 23:15:56 WARN TiSparkTeleInfo$: Failed to qet PD version For input string: “2379,192.168.3.222:23379,192.168.3.223:2379”