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.
这是怎么回事,大神啊
