From 805db3c8ec97ed87cf389736e7124508669f81c2 Mon Sep 17 00:00:00 2001 From: Matteo Merli Date: Tue, 16 May 2017 18:36:32 -0700 Subject: [PATCH] Fixed ZK configuration instructions (#415) --- docs/ClusterSetup.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/ClusterSetup.md b/docs/ClusterSetup.md index 5520d75e4a6..85c1ef41b36 100644 --- a/docs/ClusterSetup.md +++ b/docs/ClusterSetup.md @@ -41,6 +41,18 @@ server.3=zk3.us-west.example.com:2888:3888 ... ``` +Then on each hosts, we need to specify the id of the server in the +specific `myid` file. See [ZK admin guide](https://zookeeper.apache.org/doc/r3.4.10/zookeeperAdmin.html#sc_zkMulitServerSetup) +for more in depth reference. + +For example, on `zk1.us-west.example.com`, we need to set it like: +``` +$ mkdir -p data/zookeeper +$ echo 1 > data/zookeeper/myid +``` + +On `zk2.us-west.example.com` it would be `echo 2 > data/zookeeper/myid` and so on. + Start ZK service on all the hosts: ```shell @@ -66,6 +78,8 @@ server.3=zk3.us-west.example.com:2185:2186 ... ``` +As before, create the `myid` files for each server on `data/global-zookeeper/myid`. + ##### Multi-cluster pulsar instance When deploying a global Pulsar instance, with clusters distributed across -- GitLab