[英]Kafka JDBC Source Connector is not reading data from mysql with sql query?
I have created a local database for testing purpose on MySQL. 我已经创建了一个本地数据库,用于在MySQL上进行测试。 When I'm trying to read the data from the database, it's reading fine.
当我尝试从数据库中读取数据时,它的读取很好。 When I use the SQL query in connector configuration, it's just running but not reading any data from the database.
当我在连接器配置中使用SQL查询时,它只是在运行,而没有从数据库中读取任何数据。 Any idea what might cause this?
知道是什么原因造成的吗?
Here is my connector config: 这是我的连接器配置:
name=just-like
acks=0
connector.class=io.confluent.connect.jdbc.JdbcSourceConnector
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
connection.url=jdbc:mysql://localhost:3306/DBtest?user=**&password=**
connection.user=**
connection.password=**
table.whitelist=test
mode=timestamp
timestamp.column.name=createddate
query= select column_name from table_name
validate.non.null=False
topic.prefix=sql-
Database Schema 数据库架构
We shouldn't use the tag table.whitelist with the custom query. 我们不应在自定义查询中使用标签table.whitelist 。 If you want to use the query tag, I suggest removing the table.whitelist tag.
如果要使用查询标记,建议删除table.whitelist标记。 You can't use them both together.
您不能同时使用它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.