首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Zookeeper设置集群

Zookeeper设置集群
EN

Stack Overflow用户
提问于 2016-12-26 12:40:57
回答 1查看 461关注 0票数 1

你好,我正在尝试在集群环境中设置Zookeeper。为此,我将zoo.cfg设置为:

代码语言:javascript
复制
tickTime=2000                # REQUIRED - This will be the basis of timing 

events (milliseconds)
initLimit=5                  # REQUIRED - Amount of ticks in initialization
syncLimit=2                  # REQUIRED - Amount of ticks to determine if node is still connected
dataDir=/var/lib/zookeeper   # REQUIRED - Where to store zookeeper sync data
clientPort=2181              # REQUIRED - Port which clients connect to
server.1=0.0.0.0:2888:3888 # or "0.0.0.0:2888:3888" if server.1 is the current node
server.2=server2host:2888:3888 # or "0.0.0.0:2888:3888" if server.2 is the current node
server.3=server3host:2888:3888 # or "0.0.0.0:2888:3888" if server.N is the current node

当尝试启动当前节点的前台时,例如1,我得到了错误:

代码语言:javascript
复制
if server.1 is the current node does not have the form host:port 
or host:port:portor host:port:port:type

但我相信当前的节点看起来没问题。有没有人能指点一下这里丢失的东西。

-V

EN

回答 1

Stack Overflow用户

发布于 2016-12-26 13:25:52

好的,我弄明白了,不知何故,评论没有被当作评论,因此启动抛出了错误,修改了

代码语言:javascript
复制
tickTime=2000
initLimit=5
syncLimit=2
dataDir=/var/lib/zookeeper
clientPort=2181
server.1=0.0.0.0:2888:3888
server.2=server2host:2888:3888
server.3=server3host:2888:3888

有效!-Vaibhav

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

https://stackoverflow.com/questions/41326495

复制
相关文章

相似问题

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