Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: cdc 创建同步任务
TiDB version 6.5.0:
tiup cdc cli changefeed create \
--server=http://XXXX:3010 \
--sink-uri="mysql://root:root@xxxx:xxx/" \
--changefeed-id="hl-replication-task" --config 666_888_ticdc_config.toml
tiup is checking updates for component cdc …
Starting component cdc
: /home/tidb/.tiup/components/cdc/v6.5.0/cdc cli changefeed create --server=http://10.0.131.240:3010 --sink-uri=mysql://root:root@127.0.0.1:7806/ --changefeed-id=hl-replication-task --config 666_888_ticdc_config.toml
Is the PD port written incorrectly?

Isn’t this port the CDC port? When creating a synchronization task, the --server specifies the CDC port, right?
I installed this on a single machine and changed the 8300 port to 3010/3020/3030.
Did the port for PD also change?
Will it have any impact if changed? When creating a synchronization task, there’s no need to specify the PD port, right?
I made a mistake. When I listed, I wrote the wrong port.
Is it still reporting an error now?
The above error is not reported, but after creating the synchronization task, the table is not synchronized.
cat 666_888_ticdc_config.toml
case-sensitive = true
enable-old-value = true
[filter]
rules = ['dba_test.*']
[mounter]
worker-num = 8
Check the changefeed status to see if there are any errors.
Okay, when creating a table, you must add a primary key, otherwise it cannot be synchronized.
There are parameters, and it can be done without adding a primary key. Please study it carefully.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.