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

clipboard.png

之前配置测试环境的时候也遇到过这个问题,是我的zk的版本的问题,现在我配置正式环境,是把测试环境的zk和jdk拷到正式服的,又爆这个错了。端口白名单也设置了。服务起是6.8的。网上看了好多,没有解决。。。大家有什么思路吗??

阅读 11k
1 个回答

=====================正确答案========================
卧槽,原来是我的阿里云的端口号配置错了

clipboard.png
这样是不行的!

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题