我在RHEL设置上有一个Confluent,我正在尝试从Oracle 12C表/视图中读取数据(我尝试过这两种方法)并且它永远不会在消费者处创建消息。
我怀疑它与使用批量加载程序而非一元插入加载的表中的数据有关。我在指定的数据中有一个唯一的递增id列,并且配置加载并且它将我的主题名称显示为活动/正在运行。
有什么想法吗?
{
"name":"oracle_source_05",
"config": {
"connector.class":
"io.confluent.connect.jdbc.JdbcSourceConnector",
"key.converter": "io.confluent.connect.avro.AvroConverter",
"key.converter.schema.registry.url": "http://<host>:8081",
"value.converter": "io.confluent.connect.avro.AvroConverter",
"value.converter.schema.registry.url": "http://<host>:8081",
"connection.url": “<jdbc url>
"connection.user" : "<user>",
"connection.password" : "<pw>",
"table.whitelist": "<view name>",
"table.type" : "VIEW",
"mode": "incrementing",
"incrementing.column.name" : "<id column>",
"validate.non.null":"false",
"topic.prefix":"ORACLE-"
}
}
Log有此消息:
[2018-04-17 10:59:19,965] DEBUG [Controller id = 0]主题不在首选副本Map()(kafka.controller.KafkaController)
[2018-04-17 10:59:19,965] TRACE [Controller id = 0]经纪人0的领导者不平衡比率为0.0(kafka.controller.KafkaController)
的server.log:
[2018-04-18 09:24:26,495] INFO接受来自/127.0.0.1:39228的套接字连接(org.apache.zookeeper.server.NIOServerCnxnFactory)
[2018-04-18 09:24:26,498] INFO客户端尝试在/127.0.0.1:39228(org.apache.zookeeper.server.ZooKeeperServer)建立新会话
[2018-04-18 09:24:26,499] INFO为客户端/127.0.0.1:39228(org.apache.zookeeper.server.ZooKeeperServer)建立会话0x162d403daed0004,协商超时30000
[2018-04-18 09:24:26,516] INFO sessionid的已处理会话终止:0x162d403daed0004(org.apache.zookeeper.server.PrepRequestProcessor)
[2018-04-18 09:24:26,517] INFO已关闭客户端/127.0.0.1:39228的套接字连接,其中包含sessionid 0x162d403daed0004(org.apache.zookeeper.server.NIOServerCnxn)