Search code examples
apache-kafka-connectdebezium

Why Debezium creates Topics for all the tables, even when table.whitelist is specified


I am using Debezium plugin for Kafka Connect to stream MySQL Database changes.

I have explicitly mentioned my whitelist table in the

connector.properties

table.whitelist=tripDriverMapping

database.tables=azuga.tripDriverMapping

enter image description here

Why does Debezium create topics for all the tables in the database? Is there any workaround to avoid creation of all these unnecessary topics as I'm going to consume from only one topic.


Solution

  • The correct configuration for the connector is:

    database.whitelist=azuga
    table.whitelist=azuga.tripDriverMapping
    

    database.whitelist might be optional