I have a 5 server ZK cluster. I want to connect to it using the CLI from
some remote machine. Is there any particular set up that I need to connect?
I am running it as zkCli.sh -server <server name> where the server name is
one of the servers in the ZK cluster. Is this correct? I can get a string of
Connect Exceptions as shown below:
2010-09-07 16:46:07,955 - WARN
[main-SendThread(msgzkapp001.ash2.facebook.com:2181
):ClientCnxn$SendThread@1120] - Session 0x0 for server null, unexpected
error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:672)
at
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078)
2010-09-07 16:46:09,141 - INFO
[main-SendThread(msgzkapp001.ash2.facebook.com:2181
):ClientCnxn$SendThread@1000] - Opening socket connection to server
msgzkapp001.ash2.facebook.com/10.138.31.220:2181
2010-09-07 16:46:09,220 - WARN
[main-SendThread(msgzkapp001.ash2.facebook.com:2181
):ClientCnxn$SendThread@1120] - Session 0x0 for server null, unexpected
error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:672)
at
org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1078)
Cheers
Avinash
|