2024-09-12 10:16:28.896 INFO 18540 --- [ main] o.a.d.c.d.DefaultApplicationDeployer : [DUBBO] use registry as config-center: <dubbo:config-center highestPriority="false" id="config-center-zookeeper-127.0.0.1-2181" address="zookeeper://127.0.0.1:2181" protocol="zookeeper" port="2181" parameters="{client=null}" />, dubbo version: 3.2.5, current host: 192.168.31.116
2024-09-12 10:16:29.106 WARN 18540 --- [127.0.0.1:2181)] org.apache.zookeeper.ClientCnxn : Session 0x0 for server 127.0.0.1/<unresolved>:2181, unexpected error, closing socket connection and attempting reconnect
java.lang.IllegalArgumentException: Unable to canonicalize address 127.0.0.1/<unresolved>: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)
当我搭建dubbo环境时报错
搭建dubbo环境时出现错误
dubbo:dubbo-admin-server-0.7.0
动物园管理员:3.9.2
jdk:1.8
更换了jkd、dubbo-admin、zk的版本,还是不行
您正在将Dubbo与ZooKeeper一起使用,Dubbo 3.2.5和您连接的ZooKeeper版本之间可能存在不兼容。