【发布时间】:2019-11-17 18:56:41
【问题描述】:
大家好, 我正在使用用于 postgres 的 Kafka JDBC 源连接器。以下是我的连接器配置。有些如何它没有带来任何数据。这个配置有什么问题?
{
"name": "test-connection",
"config": {
"connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
"mode": "timestamp",
"timestamp.column.name": "TEST_DT",
"topic.prefix": "test",
"connection.password": "xxxxxx",
"validate.non.null": "false",
"connection.user": "xxxxxx",
"table.whitelist": "test.test",
"connection.url": "jdbc:postgresql://xxxx:5432/xxxx?ssl=true&stringtype=unspecified",
"name": "test-connection"
},
"tasks": [],
"type": "source"
}
我需要创建主题还是自动生成主题?
我希望根据示例数据正在流动,但数据没有流动。以下是我在 kafka 连接中看到的日志。但是,没有数据流入。
日志
[2019-07-07 20:52:37,465] INFO WorkerSourceTask{id=test-connection-0} 提交偏移量 (org.apache.kafka.connect.runtime.WorkerSourceTask) [2019-07-07 20:52:37,465] INFO WorkerSourceTask{id=test-connection-0} 刷新 0 条未完成的偏移提交消息 (org.apache.kafka.connect.runtime.WorkerSourceTask)
【问题讨论】:
标签: postgresql jdbc apache-kafka apache-kafka-connect confluent-platform