How to write the configuration file to sync a specific table from a specified database in TiDB to Kafka using TiCDC?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: ticdc同步tidb指定的库里面的一个表到kafka,该怎么在配置文件里面写?

| username: TiDBer_5GvAkLi0

【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?

| username: Meditator | Original post link

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.

| username: TiDBer_5GvAkLi0 | Original post link

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?

| username: Meditator | Original post link

The dispatcher is the distribution rule for distributing the partition of the topic, with only the following options:
image
https://docs.pingcap.com/zh/tidb/v5.1/manage-ticdc

| username: TiDBer_5GvAkLi0 | Original post link

Got it! Understood! But I only want to sync one table to Kafka! Is it okay to write it like this?

| username: Meditator | Original post link

Sure.

| username: TiDBer_5GvAkLi0 | Original post link

Thank you for the explanation.

| username: TiDBer_5GvAkLi0 | Original post link

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?

| username: TiDBer_xzeqSVEp | Original post link

Sure, I just saw it today:

| username: TiDBer_5GvAkLi0 | Original post link

Thank you, boss! Much appreciated.

| username: system | Original post link

This topic will be automatically closed 60 days after the last reply. No new replies are allowed.