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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

consumer unable to connect zookeeper

limwesley opened this issue · comments

ConsumerConfiguration consumer = new ConsumerConfiguration()
            {
                AutoCommit = true,
                GroupId ="microsoft_console_group",
                ZooKeeper = new ZooKeeperConfiguration("10.0.0.4:2181",0,6000,2000)
            };
            ZookeeperConsumerConnector zoo = new ZookeeperConsumerConnector(consumer, true);

throw error at
zookeeperIntegration\zookeeperconnection.cs
this._zkclient = new ZooKeeper(this.Servers, new TimeSpan(0, 0, 0, 0, this.SessionTimeout), watcher);
said unable to connect to zookeeper
try to check my zookeeper it was working fine and able to telnet to 10.0.0.4 and used terminal console to connect, any method to solve this ?