SeaTunnel supports to interpret cdc record as Debezium-JSON messages publish to mq(kafka) system.
This is useful in many cases to leverage this feature, such as compatible with the debezium ecosystem.
How To Use
MySQL-CDC Sink Kafka
env {parallelism = 1job.mode = "STREAMING"checkpoint.interval = 15000}source {MySQL-CDC {result_table_name = "table1"base-url="jdbc:mysql://localhost:3306/test""startup.mode"=INITIALtable-names=["database1.t1","database1.t2","database2.t1"]# compatible_debezium_json optionsformat = compatible_debezium_jsondebezium = {# include schema into kafka messagekey.converter.schemas.enable = falsevalue.converter.schemas.enable = false# include ddlinclude.schema.changes = true# topic prefixdatabase.server.name = "mysql_cdc_1"}}}sink {Kafka {source_table_name = "table1"bootstrap.servers = "localhost:9092"# compatible_debezium_json optionsformat = compatible_debezium_json}}
