【发布时间】:2021-05-19 03:08:21
【问题描述】:
我有 Debezium MySQL 连接器:
{
"name": "debezium_mysql",
"config": {
"connector.class": "io.debezium.connector.mysql.MySqlConnector",
"tasks.max": "1",
"database.hostname": "***",
"database.port": "3306",
"database.user": "kafkaconnect",
"database.password": "${file:/connect-credentials.properties:mysql_pass}",
"database.server.name": "mysql",
"heartbeat.interval.ms": 5000,
"snapshot.mode": "when_needed",
"database.include.list": "compare_sports",
"table.include.list": "compare_sports.matches,compare_sports.games",
"database.history.kafka.topic": "mysql_compare_sports_history",
"database.history.kafka.recovery.poll.interval.ms": 5000,
"database.history.kafka.bootstrap.servers": "***:9092",
"include.schema.changes": "false",
"transforms": "extractInt",
"transforms.extractInt.type": "org.apache.kafka.connect.transforms.ExtractField$Key",
"transforms.extractInt.field": "id"
}
}
我想从同一个mysql中的其他数据库添加新表(存在很长时间)。将其添加到包含列表后,出现错误:
Encountered change event for table new_database.new_table whose schema isn't known to this connector
我尝试使用snapshot.mode: initial 创建新的连接器,但随后只创建了新的mysql_history 主题,但没有所需的new_database.new_table 主题
我应该怎么做才能将新数据库中的新表添加到现有连接器?
谢谢
【问题讨论】:
-
此配置项需要将表列为
schemaName.tableName
标签: apache-kafka-connect debezium