我正在尝试在3台不同的机器上配置3个节点的Zookeeper cLuster,这是我在3个节点上使用的zoo.cfg文件
# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just
# example sakes.
#dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sure to read the maintenance section of the
dataDir=/home/user/HA/zookeeper_data
dataLogDir=/home/user/HA/zookeeper_log
Server.1=Server1:2888:3888
Server.2=Server2:2888:3888
Server.3=Server3:2888:3888当我在三个节点上启动zk Server时
zkServer.sh start 这三台服务器都在独立模式下工作

这个配置有什么问题?还有其他启动集群的方法吗?谢谢你
发布于 2018-09-07 20:32:38
经过一个小时的搜索,我发现问题出在节点和in列表中的配置文件"zoo.cfg“中:
配置错误
Server.1=Server1:2888:3888
Server.2=Server2:2888:3888
Server.3=Server3:2888:3888正确配置
server.1=Server1:2888:3888
server.2=Server2:2888:3888
server.3=Server3:2888:3888问题是"Server...“中的第一个S是大写的。有时候解决方案就在细节中!谢谢
https://stackoverflow.com/questions/52222070
复制相似问题