【 TiDB 使用环境】测试环境
【 TiDB 版本】7.5.2
【遇到的问题:问题现象及影响】
[tidb@zy-nph-zf-test-bigdbvm-yanlian-haproxy01 ~]$ tiup ctl:v7.5.2 cdc changefeed create --pd=http://xxx.xx.xxx.xx:8300 --sink-uri=“kafka://xxx.xx.xxx.xx:9092/byh_fk_paychannel_group_tidb?protocol=canal-json&kafka-version=2.11&partition-num=1&max-message-bytes=671088640&replication-factor=1” --changefeed-id=“byh_fk_paychannell_group” --sort-engine=“unified” --config /home/tidb/migrate_handrepairorder_to_ticdc_config.toml
Starting component ctl: /home/tidb/.tiup/components/ctl/v7.5.2/ctl cdc changefeed create --pd=http://xxx.xx.xxx.xx:8300 --sink-uri=kafka://xxx.xx.xxx.xx:9092/byh_fk_paychannel_group_tidb?protocol=canal-json&kafka-version=2.11&partition-num=1&max-message-bytes=671088640&replication-factor=1 --changefeed-id=byh_fk_paychannell_group --sort-engine=unified --config /home/tidb/migrate_handrepairorder_to_ticdc_config.toml
[2024/08/13 20:33:00.760 +08:00] [WARN] [pd_service_discovery.go:452] [“[pd] failed to get cluster id”] [url=http://xxx.xx.xxx.xx:8300] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unimplemented desc = unknown service pdpb.PD target:xxx.xx.xxx.xx:8300 status:READY: error:rpc error: code = Unimplemented desc = unknown service pdpb.PD target:xxx.xx.xxx.xx:8300 status:READY”]
[2024/08/13 20:33:01.760 +08:00] [WARN] [pd_service_discovery.go:452] [“[pd] failed to get cluster id”] [url=http://xxx.xx.xxx.xx:8300] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unimplemented desc = unknown service pdpb.PD target:xxx.xx.xxx.xx:8300 status:READY: error:rpc error: code = Unimplemented desc = unknown service pdpb.PD target:xxx.xx.xxx.xx:8300 status:READY”]
[2024/08/13 20:33:02.759 +08:00] [WARN] [pd_service_discovery.go:452] [“[pd] failed to get cluster id”] [url=http://xxx.xx.xxx.xx:8300] [error=“[PD:client:ErrClientGetMember]error:rpc error: code = Unimplemented desc = unknown service pdpb.PD target:xxx.xx.xxx.xx:8300 status:READY: error:rpc error: code = Unimplemented desc = unknown service pdpb.PD target:xxx.xx.xxx.xx:8300 status:READY”]
Error: Fail to open PD client. Please check the pd address(es) “http://xxx.xx.xxx.xx:8300”: [pd] failed to get cluster id
Error: exit status 1
[tidb@zy-nph-zf-test-bigdbvm-yanlian-haproxy01 ~]$
从V6.4还是V6.5版本创建changefeed任务就没有–pd的参数了,而是改成使用 --server=http://xx.xx.xx.xx:8300 这种方式了。
https://docs.pingcap.com/zh/tidb/stable/ticdc-sink-to-kafka#创建同步任务复制增量数据-kafka
确认一下pd集群是否正常
此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。