JDBC Source Connector

时间:2018-04-27 18:03:15

标签: apache-kafka apache-kafka-connect confluent

我用下载json文件 ./confluent加载CRM_TEST -d /kafka/CRM_TEST.json 然后有20秒左右的滞后,然后没有提示消息,我认为它已成功添加。我检查连接日志我没有看到任何条目没有创建Source并且没有创建主题。可能会发生什么

{ 
"name":"CRMMASTP_SOURCE", 
"config":{ 
"connector.class":"io.confluent.connect.jdbc.JdbcSourceConnector", 
"tasks.max":"1", 
"topic.prefix":"CRMMASTP_TOPIC", 
"connection.url":"jdbc:as400://<IP_ADDRESS>:<PORT>/<DATABASE>", 
"connection.user":"unifi_srvc", 
"connection.password":"weblogin", 
"key.converter": "io.confluent.connect.avro.AvroConverter", 
"key.converter.schema.registry.url": "http://localhost:8081", 
"value.converter": "io.confluent.connect.avro.AvroConverter", 
"value.converter.schema.registry.url": "http://localhost:8081", 
"mode": "bulk", 
"query": "SELECT * FROM DATABASE.TABLE limit 10", 
"poll.interval.ms": "60000", 
"batch.max.rows": "10000", 
"table.types": "TABLE", 
"plugin.path":"/confluent-4.1.0/share/java" 
} 
}

0 个答案:

没有答案