Never mind. It was my bad. I figured it out. Thanks Avinash
On Tue, Sep 7, 2010 at 4:56 PM, Henry Robinson <he...@cloudera.com> wrote: > Are you running ZK on the standard ports (in particular, client port 2181)? > Can you telnet into those servers on that port and issue an ruok command? > > Henry > > On 7 September 2010 16:48, Avinash Lakshman <avinash.laksh...@gmail.com > >wrote: > > > 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$sendthr...@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$sendthr...@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$sendthr...@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 > > > > > > -- > Henry Robinson > Software Engineer > Cloudera > 415-994-6679 >