Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: dm 增量同步报错,task.yaml配置问题
【TiDB Usage Environment】Test Environment
【TiDB Version】v5.4.1
【Encountered Problem】
【Problem Phenomenon and Impact】When synchronizing MySQL incrementally to TiDB, an error occurs when adding a synchronization task. The account and password on the target side have been confirmed to be correct. The configuration is as follows. Please check where the configuration is incorrect, or if the source MySQL must enable GTID?
[tidb@db-tidb-0001 ~/tidb-community-toolkit-v5.4.1-linux-amd64/bin]$ tiup dmctl --master-addr 10.36.xxx:8261 check-task ./task.yaml
tiup is checking updates for component dmctl …
Starting component dmctl
: /home/tidb/.tiup/components/dmctl/v6.0.0/dmctl/dmctl /home/tidb/.tiup/components/dmctl/v6.0.0/dmctl/dmctl --master-addr 10.36.xx.xxx:8261 check-task ./task.yaml
{
“result”: false,
“msg”: “[code=20003:class=dm-master:scope=internal:level=medium], Message: decode task config failed, RawCause: yaml: line 2: did not find expected key, Workaround: Please check the configuration file has correct YAML format.”
}
【Attachment】