【问题标题】:Debezium MySQL parameter table.exclude.list not workingDebezium MySQL 参数 table.exclude.list 不起作用
【发布时间】:2021-05-21 20:29:14
【问题描述】:

我正在使用 Debezium 和 MySQL。在数据库中有一个由 Flyway 管理的表,我想排除它。我使用了以下配置:

name=IRS-Connector
connector.class=io.debezium.connector.mysql.MySqlConnector
database.hostname=mysql
database.port=3306
database.user=user
database.password=user
database.allowPublicKeyRetrieval=true
database.server.name=irs-conn-v1
database.include.list=decider
database.exclude.list=register
database.history.kafka.bootstrap.servers=localhost:9092
database.history.kafka.topic=schema-changes.decider
table.exclude.list=flyway_schema_history

但是当我看到主题 irs-conn-v1.decider.flyway_schema_history 已创建时。

【问题讨论】:

    标签: mysql apache-kafka apache-kafka-connect debezium


    【解决方案1】:

    根据table.exclude.list 选项的文档:

    每个标识符的格式为databaseName.tableName

    所以你需要附加databaseName:

    table.exclude.list=decider.flyway_schema_history
    

    【讨论】:

    • 你好,我试过了,还是不行。
    • 什么是 Debezium 版本?日志中有什么有用的东西吗?
    猜你喜欢
    • 2021-01-14
    • 2019-06-28
    • 2012-09-17
    • 1970-01-01
    • 2021-09-03
    • 2016-11-27
    • 2022-01-16
    • 1970-01-01
    • 2013-12-19
    相关资源
    最近更新 更多