From 2264c354f4e7eddf58c6908e70f7727711da1cd2 Mon Sep 17 00:00:00 2001 From: radekg Date: Sun, 18 Sep 2016 23:06:41 +0200 Subject: [PATCH 1/3] Fix the cluster setup instructions. --- docs/ClusterSetup.md | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/ClusterSetup.md b/docs/ClusterSetup.md index 2a47939d7bbef..febe7319f32cf 100644 --- a/docs/ClusterSetup.md +++ b/docs/ClusterSetup.md @@ -35,9 +35,9 @@ Add all ZK servers the quorum configuration. Edit `conf/zookeeper.conf` and add the following lines in all the ZK servers: ``` -server.1=zk1.us-west.example.com:2181 -server.2=zk2.us-west.example.com:2181 -server.3=zk3.us-west.example.com:2181 +server.1=zk1.us-west.example.com:2888:3888 +server.2=zk2.us-west.example.com:2888:3888 +server.3=zk3.us-west.example.com:2888:3888 ... ``` @@ -133,11 +133,11 @@ for the first time. The following command will prepare both the BookKeeper as well as the Pulsar metadata. ```shell -$ bin/pulsar --cluster us-west \ - --zookeeper zk1.us-west.example.com:2181 \ - --global-zookeeper zk1.us-west.example.com:2184 \ - --service-url http://pulsar.us-west.example.com:8080/ \ - --service-url-tls https://pulsar.us-west.example.com:8443/ +$ bin/pulsar initialize-cluster-metadata --cluster us-west \ + --zookeeper zk1.us-west.example.com:2181 \ + --global-zookeeper zk1.us-west.example.com:2184 \ + --service-url http://pulsar.us-west.example.com:8080/ \ + --service-url-tls https://pulsar.us-west.example.com:8443/ ``` #### BookKeeper @@ -183,6 +183,9 @@ ledgerDirectories=data/bookkeeper/ledgers # Point to local ZK quorum zkServers=zk1.example.com:2181,zk2.example.com:2181,zk3.example.com:2181 + +# Change the ledger manager type +ledgerManagerType=hierarchical ``` Please consult [http://bookkeeper.apache.org/]() for more extensive documentation @@ -221,6 +224,7 @@ zookeeperServers=zk1.us-west.example.com:2181,zk2.us-west.example.com:2181,zk3.u globalZookeeperServers=zk1.us-west.example.com:2184,zk2.us-west.example.com:2184,zk3.us-west.example.com:2184 clusterName=us-west +statusFilePath=broker-status-file ``` ##### Start broker service From a8a8e8db4a89f56b3e34f3759063d05d803b43f8 Mon Sep 17 00:00:00 2001 From: radekg Date: Mon, 19 Sep 2016 16:07:31 +0200 Subject: [PATCH 2/3] Fix tabs / spaces issue. --- docs/ClusterSetup.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ClusterSetup.md b/docs/ClusterSetup.md index febe7319f32cf..637157894843c 100644 --- a/docs/ClusterSetup.md +++ b/docs/ClusterSetup.md @@ -137,7 +137,7 @@ $ bin/pulsar initialize-cluster-metadata --cluster us-west \ --zookeeper zk1.us-west.example.com:2181 \ --global-zookeeper zk1.us-west.example.com:2184 \ --service-url http://pulsar.us-west.example.com:8080/ \ - --service-url-tls https://pulsar.us-west.example.com:8443/ + --service-url-tls https://pulsar.us-west.example.com:8443/ ``` #### BookKeeper From e6fd5c9562008ba2493a9ab344ff504c6cdc9e13 Mon Sep 17 00:00:00 2001 From: radekg Date: Wed, 21 Sep 2016 00:02:02 +0200 Subject: [PATCH 3/3] Remove statusFilePath addition as per https://github.com/yahoo/pulsar/pull/28. --- docs/ClusterSetup.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/ClusterSetup.md b/docs/ClusterSetup.md index 637157894843c..428438a7385ee 100644 --- a/docs/ClusterSetup.md +++ b/docs/ClusterSetup.md @@ -224,7 +224,6 @@ zookeeperServers=zk1.us-west.example.com:2181,zk2.us-west.example.com:2181,zk3.u globalZookeeperServers=zk1.us-west.example.com:2184,zk2.us-west.example.com:2184,zk3.us-west.example.com:2184 clusterName=us-west -statusFilePath=broker-status-file ``` ##### Start broker service