zookeeper 集群不同步

漫雪信步 2016-05-27 05:19:04
zoo.cgf:
# 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.
dataDir=/tmp/zookeeper
# the port at which the clients will connect
clientPort=2181
server.1=kafka1:2888:3888
server.2=kafka2:2888:3888
server.3=kafka3:2888:3888

这三台机的配置都一样的,myid 三台机设置1,2,3
现在的情况是1和3是能同步的,但是2是同步不了的,同时2在启动的时候日志上并没有同步信息,查进程已经启动了,但查状态是[root@kafka2 bin]# ./zkServer.sh status
JMX enabled by default
Using config: /home/zookeeper-3.3.4/bin/../conf/zoo.cfg
Server is running at :2181
Error contacting service. It is probably not running.
这是怎么回事,大神啊
...全文
2533 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

1,233

社区成员

发帖
与我相关
我的任务
社区描述
企业软件 中间件技术
社区管理员
  • 中间件
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧