From 7d6c3984ee058f802622c9983cf053488b10803b Mon Sep 17 00:00:00 2001 From: Zike Yang Date: Thu, 27 Jan 2022 18:49:54 +0800 Subject: [PATCH 1/3] [Doc] Use metadata-store and configuration-metadata-store in initialize-cluster-metadata Motivation In #13921, we add two new config metadata-store and configuration-metadata-store in initialize-cluster-metadata. We need to update the doc to use these two new config. Modification * Use new config in `bin/pulsar initialize-cluster-metadata` Signed-off-by: Zike Yang --- site2/docs/admin-api-clusters.md | 4 ++-- site2/docs/deploy-bare-metal-multi-cluster.md | 4 ++-- site2/docs/deploy-bare-metal.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site2/docs/admin-api-clusters.md b/site2/docs/admin-api-clusters.md index 5f88af79cff10..54556515d832d 100644 --- a/site2/docs/admin-api-clusters.md +++ b/site2/docs/admin-api-clusters.md @@ -83,8 +83,8 @@ Here's an example cluster metadata initialization command: ```shell bin/pulsar initialize-cluster-metadata \ --cluster us-west \ - --zookeeper zk1.us-west.example.com:2181 \ - --configuration-store zk1.us-west.example.com:2184 \ + --metadata-store zk1.us-west.example.com:2181 \ + --configuration-metadata-store zk1.us-west.example.com:2184 \ --web-service-url http://pulsar.us-west.example.com:8080/ \ --web-service-url-tls https://pulsar.us-west.example.com:8443/ \ --broker-service-url pulsar://pulsar.us-west.example.com:6650/ \ diff --git a/site2/docs/deploy-bare-metal-multi-cluster.md b/site2/docs/deploy-bare-metal-multi-cluster.md index 69238311293c5..f20862b966587 100644 --- a/site2/docs/deploy-bare-metal-multi-cluster.md +++ b/site2/docs/deploy-bare-metal-multi-cluster.md @@ -201,8 +201,8 @@ You can initialize this metadata using the [`initialize-cluster-metadata`](refer ```shell $ bin/pulsar initialize-cluster-metadata \ --cluster us-west \ - --zookeeper zk1.us-west.example.com:2181 \ - --configuration-store zk1.us-west.example.com:2184 \ + --metadata-store zk1.us-west.example.com:2181 \ + --configuration-metadata-store zk1.us-west.example.com:2184 \ --web-service-url http://pulsar.us-west.example.com:8080/ \ --web-service-url-tls https://pulsar.us-west.example.com:8443/ \ --broker-service-url pulsar://pulsar.us-west.example.com:6650/ \ diff --git a/site2/docs/deploy-bare-metal.md b/site2/docs/deploy-bare-metal.md index 13c001f107bd1..b61760b5daf32 100644 --- a/site2/docs/deploy-bare-metal.md +++ b/site2/docs/deploy-bare-metal.md @@ -241,8 +241,8 @@ You can initialize this metadata using the [`initialize-cluster-metadata`](refer ```shell $ bin/pulsar initialize-cluster-metadata \ --cluster pulsar-cluster-1 \ - --zookeeper zk1.us-west.example.com:2181 \ - --configuration-store zk1.us-west.example.com:2181 \ + --metadata-store zk1.us-west.example.com:2181 \ + --configuration-metadata-store zk1.us-west.example.com:2181 \ --web-service-url http://pulsar.us-west.example.com:8080 \ --web-service-url-tls https://pulsar.us-west.example.com:8443 \ --broker-service-url pulsar://pulsar.us-west.example.com:6650 \ From 95627392f305edf3b51b8ba7d7aba4be19743a2f Mon Sep 17 00:00:00 2001 From: Zike Yang Date: Thu, 27 Jan 2022 21:40:00 +0800 Subject: [PATCH 2/3] Add `zk:` prefix to the metadata store url. Signed-off-by: Zike Yang --- site2/docs/admin-api-clusters.md | 4 ++-- site2/docs/deploy-bare-metal-multi-cluster.md | 4 ++-- site2/docs/deploy-bare-metal.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site2/docs/admin-api-clusters.md b/site2/docs/admin-api-clusters.md index 54556515d832d..0855ec8f41b5c 100644 --- a/site2/docs/admin-api-clusters.md +++ b/site2/docs/admin-api-clusters.md @@ -83,8 +83,8 @@ Here's an example cluster metadata initialization command: ```shell bin/pulsar initialize-cluster-metadata \ --cluster us-west \ - --metadata-store zk1.us-west.example.com:2181 \ - --configuration-metadata-store zk1.us-west.example.com:2184 \ + --metadata-store zk:zk1.us-west.example.com:2181 \ + --configuration-metadata-store zk:zk1.us-west.example.com:2184 \ --web-service-url http://pulsar.us-west.example.com:8080/ \ --web-service-url-tls https://pulsar.us-west.example.com:8443/ \ --broker-service-url pulsar://pulsar.us-west.example.com:6650/ \ diff --git a/site2/docs/deploy-bare-metal-multi-cluster.md b/site2/docs/deploy-bare-metal-multi-cluster.md index f20862b966587..7c010f479d203 100644 --- a/site2/docs/deploy-bare-metal-multi-cluster.md +++ b/site2/docs/deploy-bare-metal-multi-cluster.md @@ -201,8 +201,8 @@ You can initialize this metadata using the [`initialize-cluster-metadata`](refer ```shell $ bin/pulsar initialize-cluster-metadata \ --cluster us-west \ - --metadata-store zk1.us-west.example.com:2181 \ - --configuration-metadata-store zk1.us-west.example.com:2184 \ + --metadata-store zk:zk1.us-west.example.com:2181 \ + --configuration-metadata-store zk:zk1.us-west.example.com:2184 \ --web-service-url http://pulsar.us-west.example.com:8080/ \ --web-service-url-tls https://pulsar.us-west.example.com:8443/ \ --broker-service-url pulsar://pulsar.us-west.example.com:6650/ \ diff --git a/site2/docs/deploy-bare-metal.md b/site2/docs/deploy-bare-metal.md index b61760b5daf32..08d980fe88cf9 100644 --- a/site2/docs/deploy-bare-metal.md +++ b/site2/docs/deploy-bare-metal.md @@ -241,8 +241,8 @@ You can initialize this metadata using the [`initialize-cluster-metadata`](refer ```shell $ bin/pulsar initialize-cluster-metadata \ --cluster pulsar-cluster-1 \ - --metadata-store zk1.us-west.example.com:2181 \ - --configuration-metadata-store zk1.us-west.example.com:2181 \ + --metadata-store zk:zk1.us-west.example.com:2181 \ + --configuration-metadata-store zk:zk1.us-west.example.com:2181 \ --web-service-url http://pulsar.us-west.example.com:8080 \ --web-service-url-tls https://pulsar.us-west.example.com:8443 \ --broker-service-url pulsar://pulsar.us-west.example.com:6650 \ From c1c582e09b10701e6971863dad3d1187cbc6948e Mon Sep 17 00:00:00 2001 From: Zike Yang Date: Sat, 29 Jan 2022 21:17:41 +0800 Subject: [PATCH 3/3] Add zk chroot example. Signed-off-by: Zike Yang --- site2/docs/admin-api-clusters.md | 4 ++-- site2/docs/deploy-bare-metal-multi-cluster.md | 4 ++-- site2/docs/deploy-bare-metal.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/site2/docs/admin-api-clusters.md b/site2/docs/admin-api-clusters.md index 0855ec8f41b5c..dd09f58dcc858 100644 --- a/site2/docs/admin-api-clusters.md +++ b/site2/docs/admin-api-clusters.md @@ -83,8 +83,8 @@ Here's an example cluster metadata initialization command: ```shell bin/pulsar initialize-cluster-metadata \ --cluster us-west \ - --metadata-store zk:zk1.us-west.example.com:2181 \ - --configuration-metadata-store zk:zk1.us-west.example.com:2184 \ + --metadata-store zk:zk1.us-west.example.com:2181,zk2.us-west.example.com:2181/my-chroot-path \ + --configuration-metadata-store zk:zk1.us-west.example.com:2181,zk2.us-west.example.com:2181/my-chroot-path \ --web-service-url http://pulsar.us-west.example.com:8080/ \ --web-service-url-tls https://pulsar.us-west.example.com:8443/ \ --broker-service-url pulsar://pulsar.us-west.example.com:6650/ \ diff --git a/site2/docs/deploy-bare-metal-multi-cluster.md b/site2/docs/deploy-bare-metal-multi-cluster.md index 7c010f479d203..d423965990180 100644 --- a/site2/docs/deploy-bare-metal-multi-cluster.md +++ b/site2/docs/deploy-bare-metal-multi-cluster.md @@ -201,8 +201,8 @@ You can initialize this metadata using the [`initialize-cluster-metadata`](refer ```shell $ bin/pulsar initialize-cluster-metadata \ --cluster us-west \ - --metadata-store zk:zk1.us-west.example.com:2181 \ - --configuration-metadata-store zk:zk1.us-west.example.com:2184 \ + --metadata-store zk:zk1.us-west.example.com:2181,zk2.us-west.example.com:2181/my-chroot-path \ + --configuration-metadata-store zk:zk1.us-west.example.com:2181,zk2.us-west.example.com:2181/my-chroot-path \ --web-service-url http://pulsar.us-west.example.com:8080/ \ --web-service-url-tls https://pulsar.us-west.example.com:8443/ \ --broker-service-url pulsar://pulsar.us-west.example.com:6650/ \ diff --git a/site2/docs/deploy-bare-metal.md b/site2/docs/deploy-bare-metal.md index 08d980fe88cf9..052b1cd6f6c17 100644 --- a/site2/docs/deploy-bare-metal.md +++ b/site2/docs/deploy-bare-metal.md @@ -241,8 +241,8 @@ You can initialize this metadata using the [`initialize-cluster-metadata`](refer ```shell $ bin/pulsar initialize-cluster-metadata \ --cluster pulsar-cluster-1 \ - --metadata-store zk:zk1.us-west.example.com:2181 \ - --configuration-metadata-store zk:zk1.us-west.example.com:2181 \ + --metadata-store zk:zk1.us-west.example.com:2181,zk2.us-west.example.com:2181/my-chroot-path \ + --configuration-metadata-store zk:zk1.us-west.example.com:2181,zk2.us-west.example.com:2181/my-chroot-path \ --web-service-url http://pulsar.us-west.example.com:8080 \ --web-service-url-tls https://pulsar.us-west.example.com:8443 \ --broker-service-url pulsar://pulsar.us-west.example.com:6650 \