Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 使用flink-sql-connector-tidb-cdc 2.2.1 启动程序一直报错,Failed to init client for PD cluster.
[Test Environment for TiDB] Testing
[TiDB Version]
[Reproduction Path] Using flink-sql-connector-tidb-cdc 2.2.1, the program keeps reporting an error, “Failed to init client for PD cluster.”
Is the cluster functioning properly? PD couldn’t be found…
Check along this route: PD address configuration error, network connection issue, PD cluster unavailable, version compatibility issue.
The PD address is incorrect; you are connecting to the TiDB server address.
The default port for PD is 2379, and the default port for TiDB is 4000. You are connecting to the 4000 port.
The address is incorrect.
The port is incorrect. 4000 is the TiDB load balancing port. You should specify the corresponding port of the machine where PD is located.