Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: ticdc同步tidb指定的库里面的一个表到kafka,该怎么在配置文件里面写?
【TiDB Usage Environment】Testing
【TiDB Version】v5.4.0
【Encountered Problem】How should I write the configuration file to synchronize specific tables from a specified database to Kafka using TiCDC?
Here are two:
Database test1 and test2 are distributed to the topic based on ts.
Database test3 and test4 are distributed to the topic based on rowid.
You can write it like this.
Thank you for the guidance! For example, if I want to sync the user table from the siteadmin database to Kafka, can I write it like this as shown in the picture?
The dispatcher is the distribution rule for distributing the partition of the topic, with only the following options:
https://docs.pingcap.com/zh/tidb/v5.1/manage-ticdc
Got it! Understood! But I only want to sync one table to Kafka! Is it okay to write it like this?
Thank you for the explanation.
Hello! May I ask if I want to synchronize these tables in a database, and the number of tables to be synchronized may increase in the future, can I configure it as shown in the picture?
Sure, I just saw it today:
Thank you, boss! Much appreciated.
This topic will be automatically closed 60 days after the last reply. No new replies are allowed.