[英]Distributed Kafka source connectors with multiple groups sharing same configurations
I have two Kafka connector nodes say Node-A and Node-B.我有两个 Kafka 连接器节点,分别是 Node-A 和 Node-B。
I run one distributed worker (pointing to the same Kafka cluster) in each node.我在每个节点上运行一个分布式工作程序(指向同一个 Kafka 集群)。
The group id and client id are unique across both the distributed workers.组 id 和客户端 id 在两个分布式工作人员中都是唯一的。
Connector tasks are created successfully using http POST requests on both the nodes.在两个节点上使用 http POST 请求成功创建连接器任务。 The connector tasks produce messages for the same topic.
连接器任务为同一主题生成消息。
Note: I understand that the distributed workers are meant to have same group id for distribution of tasks.注意:我了解分布式工作人员的任务分配具有相同的组 ID。 But I am doing as mentioned above for a specific case as an experiment.
但是我正在为一个特定的案例做如上所述的实验。
I use the http GET request from Node-A say, as in http://localhost:8083/connectors我使用来自 Node-A 的 http GET 请求,例如http://localhost:8083/connectors
The http response (from Node-A) displays the connectors created from both the nodes ie from Node-A and Node-B, whereas I expect that the response should yield only the connectors created from Node-A and not those created from Node-B. http 响应(来自 Node-A)显示从两个节点(即来自 Node-A 和 Node-B)创建的连接器,而我希望响应应该只产生从 Node-A 创建的连接器,而不是从 Node- B.
I want to know what is shared among these two distributed workers and how can i override this sharing?我想知道这两个分布式工作人员之间共享什么以及如何覆盖这种共享?
The http response (from Node-A) displays the connectors created from both the nodes ie from Node-A and Node-B
http 响应(来自 Node-A)显示从两个节点(即来自 Node-A 和 Node-B)创建的连接器
Sounds like both groups are sharing the same config and status topics.听起来两个组都共享相同的配置和状态主题。
status.storage.topic
offset.storage.topic
config.storage.topic
As per the documentation, it's recommended you read the description of what settings each topic should have, and create the topics manually根据文档,建议您阅读每个主题应具有哪些设置的描述,并手动创建主题
https://kafka.apache.org/documentation/#connect_running https://kafka.apache.org/documentation/#connect_running
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.