-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the cluster setup instructions. #21
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing command. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ouch |
||
--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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The broker expects
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the misunderstanding here is that these instructions are supposed to point to the config file keys that needs to be changed. The text in the block is not a valid complete configuration. If you look in the Perhaps the text should make more clear to use the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. That might be the case, indeed. However, these changes are absolute minimum to make it work without having to modify existing files (i.e. create bare minimum viable config). When using configuration management in any form, it might be easier to just apply the minimum config. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Main issue is that the minimum viable config might not be the best config for production use. In the broker config we can fix that, and already the conf file should have the same values that are taken as default. In BookKeeper config, however, we want to have different values from the BK defaults. |
||
``` | ||
|
||
Please consult [http://bookkeeper.apache.org/]() for more extensive documentation | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The default quorum and leader election ports are
2888:3888
for port2181
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point.