以前部署了1个zookeeper-3.4.14,由于curator版本问题,现在要用到3.5,下载apache-zookeeper-3.5.8,启动后报错了

一开始把dataDir和clientPort改了

比如这里报了8080端口被占用问题

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

发现还有1个隐藏的admin.serverPort端口


需要改动属性

# 默认 /tmp/zookeeper
dataDir=/tmp/zookeeper358

# 默认2181
clientPort=12181

# 默认8080
admin.serverPort=9091