zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trippleface <paul.ri...@gmail.com>
Subject SocketException Error! HELP
Date Thu, 30 Jun 2011 01:31:25 GMT
Hey there,
i am new to zookeeper. i first setup the configuration file:
*zoo.cfg*
tickTime=2000
clientPort=2181
dataDir=/home/user/dataDir

<hr>

Then i tried echo ruok|nc localhost 2181

this shows up:
2011-06-30 11:25:44,386 [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:39676
2011-06-30 11:25:44,394 [myid:] - INFO 
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@794] - Processing
ruok command from /0:0:0:0:0:0:0:1:39676
2011-06-30 11:25:44,397 [myid:] - INFO  [Thread-1:NIOServerCnxn@970] -
Closed socket connection for client /0:0:0:0:0:0:0:1:39676 (no session
established for client)

but there is no "imok" that i am expecting.

i check the log file and there is an error:
2011-06-30 11:25:44,386 [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:39676
2011-06-30 11:25:44,394 [myid:] - INFO 
[NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxn@794] - Processing
ruok command from /0:0:0:0:0:0:0:1:39676
2011-06-30 11:25:44,397 [myid:] - INFO  [Thread-1:NIOServerCnxn@970] -
Closed socket connection for client /0:0:0:0:0:0:0:1:39676 (no session
established for client)
2011-06-30 11:25:44,399 [myid:] - DEBUG [Thread-1:NIOServerCnxn@986] -
ignoring exception during output shutdown
java.net.SocketException: Transport endpoint is not connected
	at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
	at sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:644)
	at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
	at
org.apache.zookeeper.server.NIOServerCnxn.closeSock(NIOServerCnxn.java:982)
	at org.apache.zookeeper.server.NIOServerCnxn.close(NIOServerCnxn.java:947)
	at
org.apache.zookeeper.server.NIOServerCnxn.cleanupWriterSocket(NIOServerCnxn.java:428)
	at
org.apache.zookeeper.server.NIOServerCnxn.access$000(NIOServerCnxn.java:60)
	at
org.apache.zookeeper.server.NIOServerCnxn$CommandThread.run(NIOServerCnxn.java:497)
2011-06-30 11:25:44,400 [myid:] - DEBUG [Thread-1:NIOServerCnxn@994] -
ignoring exception during input shutdown
java.net.SocketException: Transport endpoint is not connected
	at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
	at sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:633)
	at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
	at
org.apache.zookeeper.server.NIOServerCnxn.closeSock(NIOServerCnxn.java:990)
	at org.apache.zookeeper.server.NIOServerCnxn.close(NIOServerCnxn.java:947)
	at
org.apache.zookeeper.server.NIOServerCnxn.cleanupWriterSocket(NIOServerCnxn.java:428)
	at
org.apache.zookeeper.server.NIOServerCnxn.access$000(NIOServerCnxn.java:60)
	at
org.apache.zookeeper.server.NIOServerCnxn$CommandThread.run(NIOServerCnxn.java:497)

I uploaded the logs and i am currently running zookeeper 3.4.. the same
thing happened to me on another machine running zookeeper 3.3

Please help
http://zookeeper-user.578899.n2.nabble.com/file/n6531437/zookeeper.log
zookeeper.log 
http://zookeeper-user.578899.n2.nabble.com/file/n6531437/zookeeper.out
zookeeper.out 
http://zookeeper-user.578899.n2.nabble.com/file/n6531437/zookeeper_trace.log
zookeeper_trace.log 

--
View this message in context: http://zookeeper-user.578899.n2.nabble.com/SocketException-Error-HELP-tp6531437p6531437.html
Sent from the zookeeper-user mailing list archive at Nabble.com.

Mime
View raw message