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是否挂了

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值