创建Zookeeper伪集群启动失败

Posted 你是我的导航

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了创建Zookeeper伪集群启动失败相关的知识,希望对你有一定的参考价值。

解决报错

启动zookeeper报错

 cd /usr/local/zookeeper363/
cd logs/
 less /usr/local/zookeeper363/logs/zookeeper-root-server-elasticsearch-a.out 

2022-11-01 08:53:53,671 [myid:] - ERROR [main:QuorumP
eerMain@98] - Invalid config, exiting abnormally
org.apache.zookeeper.server.quorum.QuorumPeerConfig$C
onfigException: Address unresolved: 192.168.22.189:38
88    
        at org.apache.zookeeper.server.quorum.QuorumP
eer$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)
 

cd /usr/local/zookeeper363/conf
vim zoo.cfg 

  配置项后面不能有空格;去掉空格问题就解决了

 【注意】少熬夜,多看书。

以上是关于创建Zookeeper伪集群启动失败的主要内容,如果未能解决你的问题,请参考以下文章

Zookeeper集群启动失败

zookeeper curator ( 实战一)

zookeeper集群创建失败

腾讯云~kafka伪集群搭建

ZooKeeper单机伪集群搭建与启动

猿创征文|ZooKeeper(伪)集群搭建