简体   繁体   中英

Single Kafka consumer consuming messages from two different cluster simultaneously

Is there any option or configuration which will facilitate a single Kafka consumer to consume messages from two different clusters simultaneously? While creating producer and consumer, I mention both the clusters as comma-separated. I have been observing the the consumer is consuming messages from a single cluster only.

Please see below the elucidation: Consumer C1 is configured to listen to the clusters: Cluster-1: Zookeeper-1 with Broker-1 Cluster-2: Zookeeper-2 with Broker-2

I am looking for a solution wherein the consumer C1 can consume messages from Cluster-1 and Cluster-2 simultaneously.

Consuming data from two or more different clusters is not possible. Any instance of a Kafka consumer can consume messages only from a single Kafka cluster.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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