Do you mean you were not able to connect to zookeeper after retry?
We see this error in the log from time to time, but the zkClient will
retry and usually it will succeed. Can you verify if you were finally be
able to connect or not?

Jiangjie (Becket) Qin

On 2/27/15, 12:53 AM, "Victor L" <vlyamt...@gmail.com> wrote:

>I seem to unable to connect single instance of Kafka server to single
>instance of local zookeeper server on local host (Ubuntu 14.04LTS/ open
>jdk
>1.7.0_75):
>
>[2015-02-27 08:10:11,467] INFO Initiating client connection,
>connectString=localhost:2181 sessionTimeout=6000
>watcher=org.I0Itec.zkclient.ZkClient@5513425f
>(org.apache.zookeeper.ZooKeeper)
>[2015-02-27 08:10:11,502] INFO Opening socket connection to server
>localhost/127.0.0.1:2181 (org.apache.zookeeper.ClientCnxn)
>[2015-02-27 08:10:11,506] WARN Session 0x0 for server null, unexpected
>error, closing socket connection and attempting reconnect
>(org.apache.zookeeper.ClientCnxn)
>java.net.ConnectException: Connection refused
>    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
>    at
>sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
>    at 
>org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1146)
>
>One thread describes ipv6 as possible cause for this problem:
>https://gist.github.com/akiatoji/f1a5ca319325788cf287
>so, i disabled ipv6, but no luck. It must be the common problem, Is there
>some FAQ i've missed? How can i troubleshoot it?

Reply via email to