hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henry Robinson <he...@cloudera.com>
Subject Re: Zookeeper CLI
Date Tue, 07 Sep 2010 23:56:35 GMT
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.lakshman@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$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
>



-- 
Henry Robinson
Software Engineer
Cloudera
415-994-6679

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message