2020-07-25 01:57:14,601 [myid:] - WARN [main-SendThread(localhost:2181):ClientCnxn$SendThread@1164] - Session 0x0 for server localhost/ :2181, unexpected error, closing socket connection and attempting reconnect java.lang.IllegalArgumentException: Unable to canonicalize address localhost/ :2181 because it's not resolvable at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:65) at org.apache.zookeeper.SaslServerPrincipal.getServerPrincipal(SaslServerPrincipal.java:41) at org.apache.zookeeper.ClientCnxn$SendThread.startConnect(ClientCnxn.java:1001) at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1060)
在配置zookeeper集群后,zkServer.sh查看status状态可以启动成功,但是用zkCli.sh操作时连接不上。 一直提示Session 0x0 for server localhost/ :2181, unexpected error, closing socket connection and attempting reconnect java.lang.IllegalArgumentException: Unable to canonicalize address localhost/ :2181 because it's not resolvable 看了一下源码,好像看起来像是没有获取到服务器列表???????有大神指导一下么