简体   繁体   English

多个组共享相同配置的分布式 Kafka 源连接器

[英]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.

相关问题 具有多个连接器和一个主题的分布式Kafka Connect - Distributed Kafka Connect with multiple Connectors and one Topic 用于 Kafka 分布式连接器的保险库 - Vault for Kafka distributed connectors 在Kafka中启动多个连接器通过单个分布式工作者连接吗? - Starting multiple connectors in Kafka Connect withing single distributed worker? 在 Kafka Connect 分布式模式下为多个主题配置连接器 - Configuring connectors for multiple topics on Kafka Connect Distributed Mode Kafka Connect:多个DB2 JDBC源连接器失败 - Kafka Connect: Multiple DB2 JDBC Source Connectors fail 卡夫卡中针对不同主题的多个连接器将到达同一节点 - multiple connectors in kafka to different topics are going to same node Kafka Connect:多个独立连接器可以写入同一个 HDFS 目录吗? - Kafka Connect: can multiple standalone connectors write to the same HDFS directory? Flink 应用程序在工作中拥有多个数据/密钥流都共享同一个 Kafka 源和接收器是否安全? - Is it safe for a Flink application to have multiple data/key streams in s job all sharing the same Kafka source and sink? 分布式官方 Mongodb Kafka Source Connector with Multiple tasks 不工作 - Distributed Official Mongodb Kafka Source Connector with Multiple tasks Not working Kafka 2.0 - KafkaConnect 连接器中的多个 Kerberos 主体 - Kafka 2.0 - Multiple Kerberos Principals in KafkaConnect Connectors
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM