zookeeper 集群不同步
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.
这是怎么回事,大神啊
# 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.
这是怎么回事,大神啊

...全文
相关推荐
Zookeeper的安装及配置
Zookeeper的安装及配置
Zookeeper文档
ZooKeeper 是一个为分布式应用所设计的分布的、开源的协调服务. 此文档作为入门级讲解
zookeeper配置中心,配置自动发现和更新-zookeeper-demo.zip
zookeeper配置中心,配置自动发现和更新-zookeeper-demo
zookeeper集群命令
可以通过JPS指令,这个指令是查看当前活动的java进程。 对于zookeeper来说,如果有Quoroum……,就证明Zk服务是开启的 但该命令只能查看本机机器状态。
Zookeeper集群
1. 概述 大部分分布式应用系统需要一个主控、协调器或者控制器来管理物理分布的子进程,目前,大多数都需要开发私有的协调程序,缺乏一个通用机制,协调程序的反复编写浪费,并且难以形成通用、伸缩性好的协调器,zookeeper提供通用的分布式锁服务,用以协调分布式应用,所以说zookeeper是分布式应用的协作服务。 zookeeper作为注册中心,服务器和客户端都要访问,如果并发很大,肯定会有等待,所以可通过zookeeper集群来解决。 2. 选举机制——Leader Zookeeper集群的启动过程中leader选举是一个非常重要而且复杂的一个环


