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

  1. env {
  2. parallelism = 1
  3. job.mode = "STREAMING"
  4. checkpoint.interval = 15000
  5. }
  6. source {
  7. MySQL-CDC {
  8. result_table_name = "table1"
  9. base-url="jdbc:mysql://localhost:3306/test"
  10. "startup.mode"=INITIAL
  11. table-names=[
  12. "database1.t1",
  13. "database1.t2",
  14. "database2.t1"
  15. ]
  16. # compatible_debezium_json options
  17. format = compatible_debezium_json
  18. debezium = {
  19. # include schema into kafka message
  20. key.converter.schemas.enable = false
  21. value.converter.schemas.enable = false
  22. # include ddl
  23. include.schema.changes = true
  24. # topic prefix
  25. database.server.name = "mysql_cdc_1"
  26. }
  27. }
  28. }
  29. sink {
  30. Kafka {
  31. source_table_name = "table1"
  32. bootstrap.servers = "localhost:9092"
  33. # compatible_debezium_json options
  34. format = compatible_debezium_json
  35. }
  36. }