Zookeeper ensemble not coming up

前端 未结 2 556
说谎
说谎 2021-01-13 10:50

I am trying to configure the ensemble of 3 nodes following the documentation. All of them are on Linux Ubuntu. on all the three nodes configuration file looks like this :

2条回答
  •  走了就别回头了
    2021-01-13 11:21

    Ensure that:

    • you have started the Zookeeper server on all 3 servers
    • all servers run in non-error mode by running echo ruok | netcat ip.of.zk2 2181. If ok, the server should respond with imok (FYI, here's a list of all supported 4-letter commands)
    • /home/zkuser/zookeeper_data/myid contains values 1/2/3 for each server, respectively
    • you can ping other 2 servers from the first server

    If interested, I have created a vagrant+ansible script to create a 3-node virtual Zookeeper cluster, see https://github.com/mkrcah/virtual-zookeeper-cluster

提交回复
热议问题