Linux, zookeeper installed and started up
When demo, the Java console appears:
INFO 2014-03-06 09:48:41,276 (clientcnxn.java:966)-Opening socket connection to server 10.70.42.99/10.70.42.99:2181. Will isn't attempt to authenticate using SASL (Unable to locate login configuration)
WARN 2014-03-06 09:49:02,320 (clientcnxn.java:1089)-Session 0 X0 for server null, unexpected error, closing socket connection and attempting reconnect
Java.net.ConnectException:Co Nnection timed Out:no Further information at
Sun.nio.ch.SocketChannelImpl.checkConnect (Native Method)
at Sun.nio.ch.SocketChannelImpl.finishConnect (socketchannelimpl.java:574) at
Org.apache.zookeeper.ClientCnxnSocketNIO.doTransport (clientcnxnsocketnio.java:350) at
Org.apache.zookeeper.clientcnxn$sendthread.run (clientcnxn.java:1068)
Zookeeper Console Log
2014-03-05 17:59:32,173 [myID:]-INFO [nioservercxn.factory:0.0.0.0/0.0.0.0:2181:nioservercnxn@1001]-Closed socket Connection for client/10.70.41.42:44726 (no session established for client) 2014-03-06 09:59:54,754 [myID:]-INFO [NIOS
ERVERCXN.FACTORY:0.0.0.0/0.0.0.0:2181:NIOSERVERCNXNFACTORY@197]-Accepted socket connection from/127.0.0.1:39106 2014-03-06 09:59:54,783 [myID:]-INFO [nioservercxn.factory:0.0.0.0/0.0.0.0:2181:zookeeperserver@839]-Client Attempting to establish new session at/127.0.0.1:39106 2014-03-06 09:59:54,835 [myID:]-INFO [Syncthread:0:zookeeperser VER@595]-established session 0x14491611e2f0002 with negotiated timeout 30000 for client/127.0.0.1:39106 2014-03-06 10:0 0:47,193 [myID:]-WARN [nioservercxn.factory:0.0.0.0/0.0.0.0:2181:nioservercnxn@349]-caught end of stream exception En Dofstreamexception:unable to read additional data from client SessionID 0x14491611e2f0002, likely client had closed Socke T 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:736) 2014-03-06 10:00:47,195 [myID:]-INFO [N IOSERVERCXN.FACTORY:0.0.0.0/0.0.0.0:2181:NIOSERVERCNXN@1001]-Closed socket connection for client/127.0.0.1:39106 which had SessionID 0x14491611e2f0002 2014-03-06 10:01:16,015 [myID:]-INFO [sessiontracker:zookeeperserver@325]-Expir ing session 0x14491611e2f0002, timeout of 30000ms exceeded 2014-03-06 10:01:16,016 [myID:]-INFO [ProcessThread (sid:0 CP ort:-1)::P reprequestprocessor@476]-processed session termination for SESSIONID:0X14491611E2F0002
The JVM uses the socket proxy and does not know whether it is related to the agent, and the installation is not the root user's
It's not settled, just record it.