Error Will not attempt to authenticate using SASL after configuring zookeeper on lnux

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

I also encountered this problem when configuring the test environment before. it was the problem with my version of zk. Now when I configure the formal environment, I copy the zk and jdk of the test environment to formal clothing, and this error is exposed again. Port whitelist is also set. The service is 6.8. I read a lot on the Internet, but I didn"t solve it. Do you have any ideas?

Apr.02,2021

= correct answer =
shit, it turns out that the port number of my Aliyun is misconfigured

clipboard.png
this is no good!

Menu