简体   繁体   English

如何在 kafka 源连接器属性中配置多个查询和查询特定主题?

[英]How to configure multiple query's and query specific topic in kafka source connector properties?

I want to get data from SQL into kafka topics using Source Connector, so for that i configured source properties file, i am getting whole data from the SQL table into Kafka topic, but i don't want whole data from the SQL table, I want specific column from the table,table could be a multiple, Main point is i dont no how to configure multiple topics per query. I want to get data from SQL into kafka topics using Source Connector, so for that i configured source properties file, i am getting whole data from the SQL table into Kafka topic, but i don't want whole data from the SQL table, I想要表中的特定列,表可以是多个,重点是我不知道如何为每个查询配置多个主题。

I assume you're using the jdbc source connector我假设您使用的是 jdbc 源连接器

I want specific column from the table,我想要表格中的特定列,

Then add the query property to select individual columns.然后将query属性添加到 select 各个列。

configure multiple topics per query.每个查询配置多个主题。

Source connectors generally only output to one topic.源连接器一般只有 output 到一个主题。 You can run multiple connectors with different queries and output topics您可以使用不同的查询和 output 主题运行多个连接器

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM