Loading

搭建 Zookeeper 3.6.3 集群时出现的错误

 Exception while listening java.net.BindException: Cannot assign requested address (Bind failed)

需要在配置文件 zoo.cfg 中添加

quorumListenOnAllIPs=true

官方文档:https://zookeeper.apache.org/doc/r3.5.7/zookeeperAdmin.html

谷歌翻译:当设置为 true 时,ZooKeeper 服务器将在所有可用 IP 地址上侦听来自其对等方的连接,而不仅仅是在配置文件的服务器列表中配置的地址。

它影响处理 ZAB 协议和快速领导者选举协议的连接。 默认值为假。

org.apache.zookeeper.server.admin.AdminServer$AdminServerException: Problem starting AdminServer on address 0.0.0.0, port 8080 and command URL /commands

这个AdminServer是3.5新出的东西

官方文档:https://zookeeper.apache.org/doc/r3.5.0-alpha/zookeeperAdmin.html#sc_adminserver

端口号冲突,添加配置更改端口号即可

admin.serverPort=8888

 

posted @ 2022-02-03 16:18  BigBender  阅读(572)  评论(0编辑  收藏  举报