鍍金池/ 問答/Java  網絡安全  HTML/ lnux上配置zookeeper后報錯 Will not attempt to

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

之前配置測試環(huán)境的時候也遇到過這個問題,是我的zk的版本的問題,現(xiàn)在我配置正式環(huán)境,是把測試環(huán)境的zk和jdk拷到正式服的,又爆這個錯了。端口白名單也設置了。服務起是6.8的。網上看了好多,沒有解決。。。大家有什么思路嗎??

回答
編輯回答
陌顏

=====================正確答案========================
臥槽,原來是我的阿里云的端口號配置錯了

clipboard.png
這樣是不行的!

2017年12月5日 15:56