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

Switch to Plain View
Zookeeper, mail # dev - zkCli to standalone. Got connectionLoss exception


+
Wang Yang 2012-10-01, 08:42
Copy link to this message
-
Re: zkCli to standalone. Got connectionLoss exception
Michi Mutsuzaki 2012-10-01, 21:33
Hi Wang,

This looks like the same issue being discussed here:

http://mail-archives.apache.org/mod_mbox/zookeeper-user/201209.mbox/%3Ck3t8hh%24tak%241%40ger.gmane.org%3E

I think people are working on fixing this in 3.4.5.

Thanks!
--Michi

On Mon, Oct 1, 2012 at 1:42 AM, Wang Yang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just download zk 3.4.4 to my ubuntu 10.04 and zkServer.sh start and
> zkCli.sh to connect. But got a KeeperException. It says
> ConnectionLoss. I viewed the log, NIOServerCnxn caught end of stream
> exception. Can anyone give me some advice?
>
> Here's the zookeeper.out:
>
> 2012-10-01 16:34:21,865 [myid:] - INFO  [main:NIOServerCnxnFactory@94]
> - binding to port 0.0.0.0/0.0.0.0:2181
> 2012-10-01 16:34:21,891 [myid:] - INFO  [main:FileTxnSnapLog@240] -
> Snapshotting: 0x0 to /var/lib/zookeeper/version-2/snapshot.0
> 2012-10-01 16:34:35,852 [myid:] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] -
> Accepted socket connection from /0:0:0:0:0:0:0:1:37186
> 2012-10-01 16:34:35,887 [myid:] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@839] -
> Client attempting to establish new session at /0:0:0:0:0:0:0:1:37186
> 2012-10-01 16:34:35,890 [myid:] - INFO  [SyncThread:0:FileTxnLog@199]
> - Creating new log file: log.1
> 2012-10-01 16:34:35,912 [myid:] - INFO
> [SyncThread:0:ZooKeeperServer@595] - Established session
> 0x13a1b76324b0000 with negotiated timeout 30000 for client
> /0:0:0:0:0:0:0:1:37186
> 2012-10-01 16:34:55,918 [myid:] - WARN
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@349] - caught
> end of stream exception
> EndOfStreamException: Unable to read additional data from client
> sessionid 0x13a1b76324b0000, likely client has closed socket
>         at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:220)
>
> )
>         at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:208)
>         at java.lang.Thread.run(Thread.java:679)
> 2012-10-01 16:34:55,921 [myid:] - INFO
> [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@1001] -
> Closed socket connection for client /0:0:0:0:0:0:0:1:37186 which had
> sessionid 0x13a1b76324b0000