首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法启动zookeeper集群

无法启动zookeeper集群
EN

Stack Overflow用户
提问于 2018-09-07 19:56:27
回答 1查看 70关注 0票数 0

我正在尝试在3台不同的机器上配置3个节点的Zookeeper cLuster,这是我在3个节点上使用的zoo.cfg文件

代码语言:javascript
复制
# 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时

代码语言:javascript
复制
zkServer.sh start 

这三台服务器都在独立模式下工作

这个配置有什么问题?还有其他启动集群的方法吗?谢谢你

EN

回答 1

Stack Overflow用户

发布于 2018-09-07 20:32:38

经过一个小时的搜索,我发现问题出在节点和in列表中的配置文件"zoo.cfg“中:

配置错误

代码语言:javascript
复制
Server.1=Server1:2888:3888
Server.2=Server2:2888:3888
Server.3=Server3:2888:3888

正确配置

代码语言:javascript
复制
server.1=Server1:2888:3888
server.2=Server2:2888:3888
server.3=Server3:2888:3888

问题是"Server...“中的第一个S是大写的。有时候解决方案就在细节中!谢谢

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52222070

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档