安装原生zookeeper报错Address unresolved: 10.19.32.30:3888
作者:互联网
报错
ERROR [main:QuorumPeerMain@98] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Address unresolved: 10.19.32.30:3888
at org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer.<init>(QuorumPeer.java:320)
at org.apache.zookeeper.server.quorum.flexible.QuorumMaj.<init>(QuorumMaj.java:92)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.createQuorumVerifier(QuorumPeerConfig.java:674)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseDynamicConfig(QuorumPeerConfig.java:705)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.setupQuorumPeerConfig(QuorumPeerConfig.java:679)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parseProperties(QuorumPeerConfig.java:507)
at org.apache.zookeeper.server.quorum.QuorumPeerConfig.parse(QuorumPeerConfig.java:194)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.initializeAndRun(QuorumPeerMain.java:124)
at org.apache.zookeeper.server.quorum.QuorumPeerMain.main(QuorumPeerMain.java:90)
Invalid config, exiting abnormally
2022-01-17 17:15:22,727 [myid:] - INFO [main:ZKAuditProvider@42] - ZooKeeper audit is disabled.
2022-01-17 17:15:22,730 [myid:] - ERROR [main:ServiceUtils@42] - Exiting JVM with code 2
原因
更换端口后依然不好使
后来发现zoo.cfg
server.1=10.19.32.30:2888:3888#这个位置多了个空格
server.2=10.19.32.31:2888:3888
server.3=10.19.32.32:2888:3888
解决
去掉空格解决
标签:unresolved,quorum,zookeeper,server,报错,QuorumPeerConfig,apache,org 来源: https://blog.csdn.net/jzy3711/article/details/122544332