我正在使用融合(./kafka-avro-console-consumer)传输PostgreSQL。流式传输成功,但Kafka仅显示了INSERT活动。除了诸如DELETE,UPDATE,CREATE TABLE之类的内容之外,我的Kafka消费数据没有流过。
我做到了:
这是我的连接器
{
"name": "postgres-connector-1",
"config": {
"connector.class": "io.debezium.connector.postgresql.PostgresConnector",
"tasks.max": "1",
"database.hostname": "localhost",
"database.port": "5432",
"database.user": "dbuser1",
"database.password": "password",
"database.dbname":"testdb",
"database.server.name": "debezium",
"database.whitelist": "testdb",
"plugin.name": "wal2json",
"database.history.kafka.bootstrap.servers": "localhost:9092",
"database.history.kafka.topic": "postgres-hist-test",
"include.schema.changes": "true"
}
}
预期:我可以从PostgreSQL中流式传输其他活动,例如DELETE,DROP,UPDATE,CREATE 错误:对不起,任何地方都没有错误消息!