microsoft / CSharpClient-for-Kafka

.Net implementation of the Apache Kafka Protocol that provides basic functionality through Producer/Consumer classes. The project also offers balanced consumer implementation.
Other
463 stars 95 forks source link

Multiples consumers for multiples zookeepers #65

Open juliansg1980 opened 8 years ago

juliansg1980 commented 8 years ago

Dears,

We have an application that create two consumers. Each consumer reads messages from diferents zookeepers servers. The problem that occurs is that the second consumer does not read from it zookeeper server or else it read from the first consumer zookeepers servers.

We have create two consumer configuration object, two ZookeeperConsumerConnector and two streams.

Best regards

ducas commented 8 years ago

Have you tried disabling the shared zookeeper connection?

https://github.com/Microsoft/CSharpClient-for-Kafka/blob/master/src/KafkaNET.Library/Examples/ConsumeGroup/ConsumerGroupHelper.cs

ZookeeperConsumerConnector.UseSharedStaticZookeeperClient = cgOptions.UseSharedStaticZookeeperClient; On Thu, 9 Jun 2016 at 18:32, juliansg1980 notifications@github.com wrote:

Dears,

We have an application that create two consumers. Each consumer reads messages from diferents zookeepers servers. The problem that occurs is that the second consumer does not read from it zookeeper server or else it read from the first consumer zookeepers servers.

We have create two consumer configuration object, two ZookeeperConsumerConnector and two streams.

Best regards

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Microsoft/CSharpClient-for-Kafka/issues/65, or mute the thread https://github.com/notifications/unsubscribe/AALysCOUbhbT405uR4DqIS-o3mL-ZRDAks5qJ8-0gaJpZM4Ixva6 .

Cheers, Ducas

juliansg1980 commented 8 years ago

Great!!!!!! It works!!

Thank you so much for your help

Cheers