zookeeper异常排查

 java.nex.ConnectException:Connection refused
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:731)
    at org.apache.zookeeper.ClinetCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:114)
[2/13/19 16:14:51:516 CST] 000010cb SystemOut O 2019-02-13 16:14:51.516 WARN [server.startup : 2-SendThread(103.160.125.185:2181)]o.a.z.ClientCnxn[1017]-SASL configuration failed: javax.security.auth.login.LoginException: No JAAS configuration section named 'Client' was found in specified JAAS configuration file: '/was/IBM/WebSphere/AppServer/profiles/AppSrv01/properties/wsjaas.conf'. Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.
[2/13/19 16:14:51:519 CST] 000010cb SystemOut O 2019-02-13 16:14:51.519 INFO [server.startup : 2-SendThread(103.160.125.185:2181)]o.a.z.ClientCnxn[1035]-Opening socket connection to server 103.160.125.185/103.160.125.185:2181
[2/13/19 16:14:51:519 CST] 000010cb SystemOut O 2019-02-13 16:14:51.519 ERROR [server.startup : 2-EventThread]o.a.c.ConnectionState[304]-Authentication failed
[2/13/19 16:14:51:523 CST] 000010cb SystemOut O 2019-02-13 16:14:51.523 WARN [server.startup : 2-SendThread(103.160.125.185:2181)] o.a.z.ClientCnxn[1165]-Session 0x0 for server null,unexpected error, closing socket connection and attempting reconnect

程序调dubbo接口的时候如果碰到如上类似的异常,可以检查zookeeper是否挂了

猜你喜欢

转载自blog.csdn.net/u012131610/article/details/87198889