Using flink-sql-connector-tidb-cdc 2.2.1 to start the program keeps reporting an error: Failed to init client for PD cluster

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.

| username: TiDBer_fFPwj85U

[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.”

| username: xfworld | Original post link

Is the cluster functioning properly? PD couldn’t be found…

| username: redgame | Original post link

Check along this route: PD address configuration error, network connection issue, PD cluster unavailable, version compatibility issue.

| username: ShawnYan | Original post link

The PD address is incorrect; you are connecting to the TiDB server address.

| username: 像风一样的男子 | Original post link

The default port for PD is 2379, and the default port for TiDB is 4000. You are connecting to the 4000 port.

| username: MrSylar | Original post link

The address is incorrect.

| username: cassblanca | Original post link

The port is incorrect. 4000 is the TiDB load balancing port. You should specify the corresponding port of the machine where PD is located.