Zookeeper - three nodes and nothing but errors

前端 未结 2 744
终归单人心
终归单人心 2020-12-31 02:36

I have three zookeeper nodes. All ports are open. The ip address are correct. Below is my config file. All nodes where booted by chef and all have the same install and c

2条回答
  •  渐次进展
    2020-12-31 02:57

    You need create a file named myid and put it into zookeeper var directory, one for each server, consists of a single line containing only the text of that machine's id. So myid of server 1 would contain the text "1" and nothing else. The id must be unique within the ensemble and should have a value between 1 and 255.

    see more at http://zookeeper.apache.org/doc/r3.3.3/zookeeperAdmin.html#sc_zkMulitServerSetup

提交回复
热议问题