lnux上配置zookeeper后报错 Will not attempt to authenticate using SASL
2018-08-03 10:10:30,922 [localhost-startStop-1] WARN [com.alibaba.dubbo.common.utils.NetUtils] - [DUBBO] Failed to retriving ip address, iZuf65qsfkhp7ji7h6nkpmZ: iZuf65qsfkhp7ji7h6nkpmZ: Name or service not known, dubbo version: 2.5.3, current host: 127.0.0.1
java.net.UnknownHostException: iZuf65qsfkhp7ji7h6nkpmZ: iZuf65qsfkhp7ji7h6nkpmZ: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
at com.alibaba.dubbo.common.utils.NetUtils.getLocalAddress0(NetUtils.java:203)
..
..
..
..
[org.I0Itec.zkclient.ZkClient] - Awaiting connection to Zookeeper server
2018-08-03 09:21:03,657 [localhost-startStop-1] DEBUG [org.I0Itec.zkclient.ZkClient] - Waiting for keeper state SyncConnected
2018-08-03 09:21:03,666 [localhost-startStop-1-SendThread(我的IP:2181)] INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 我的IP/我的IP:2181. Will not attempt to authenticate using SASL (unknown error)
2018-08-03 09:21:24,680 [localhost-startStop-1-SendThread(我的IP:2181)] WARN [org.apache.zookeeper.ClientCnxn] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361)
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1141)
2018-08-03 09:21:25,782 [localhost-startStop-1-SendThread(我的IP:2181)] INFO [org.apache.zookeeper.ClientCnxn] - Opening socket connection to server 我的IP/我的IP:2181. Will not attempt to authenticate using SASL (unknown error)
2018-08-03 09:21:46,785 [localhost-startStop-1-SendThread(我的IP:2181)] WARN [org.apache.zookeeper.ClientCnxn] - Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
java.net.ConnectException: Connection timed out: no further information
之前配置测试环境的时候也遇到过这个问题,是我的zk的版本的问题,现在我配置正式环境,是把测试环境的zk和jdk拷到正式服的,又爆这个错了。端口白名单也设置了。服务起是6.8的。网上看了好多,没有解决。。。大家有什么思路吗??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
=====================正确答案========================
卧槽,原来是我的阿里云的端口号配置错了
这样是不行的!