Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Hadoop >> mail # user >> Re: Zookeeper is not communicating


Copy link to this message
-
Re: Zookeeper is not communicating
Hi Aditya, it's likely that your ZK quorum has not formed correctly
"ZooKeeperServer not running" (at least 2 of the 3 servers need to be
talking). Try using the four letter words to verify (srvr).
http://zookeeper.apache.org/doc/r3.4.5/zookeeperAdmin.html#sc_zkCommands

Check the zk server logs for more details on whether the quorum can
form and why not.

Patrick

On Wed, Jul 24, 2013 at 11:48 PM, Aditya exalter
<[EMAIL PROTECTED]> wrote:
> HI,
>
>      while I run zkCli.sh -server 192.168.0.199:2181 where is ip
> 192.168.0.199 is one of my zookeeper quorum.
>
> my logs are
>
> client /127.0.0.1:41621 (no session established for client)
> 2013-07-25 12:13:05,767 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41625
> 2013-07-25 12:13:05,768 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
> 2013-07-25 12:13:05,768 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1001] - Closed
> socket connection for client /127.0.0.1:41625 (no session established for
> client)
> 2013-07-25 12:13:06,539 [myid:1] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /127.0.0.1:41628
> 2013-07-25 12:13:06,789 [myid:1] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@354] - Exception
> causing close of session 0x0 due to java.io.IOException: ZooKeeperServer not
> running
>  my zookeeper server is running.
>
> Socket connection established to 192.168.0.104:2181, initiating session
> 2013-07-25 11:47:10,276 [myid:] - INFO
> [main-SendThread(aditya.com:2181):ClientCnxn$SendThread@1085] - Unable to
> read additional data from server sessionid 0x0, likely server has closed
> socket, closing socket connection and attempting reconnect
>
>
> my zoo.cfg  is
>
> maxClientCnxns=50
> # The number of milliseconds of each tick
> tickTime=2000
> # The number of ticks that the initial
> # synchronization phase can take
> initLimit=5
> # The number of ticks that can pass between
> # sending a request and getting an acknowledgement
> syncLimit=2
> # the directory where the snapshot is stored.
> dataDir=/var/lib/zookeeper
> # the port at which the clients will connect
> clientPort=2181
> server.1=192.168.0.104:2888:3888
> server.2=192.168.0.116:2888:3888
> server.3=192.168.0.199:2888:3888
>
> Please look into the issue.
>
> Thanks & regards,
> Aditya K.