[Issue 8130] Refine BookKeeper metadata service uri when init metadata - #8269
Conversation
|
@BewareMyPower @jennifer88huang Please help to take a look about this change, thanks. |
|
LGTM. Just one point, I think it's better to change
to |
| > --broker-service-url-tls pulsar+ssl://host1:6651,host2:6651,host3:6651 | ||
| > ``` | ||
|
|
||
| > If you want to use an existing BookKeeper cluster, you can add `--existing-bk-metadata-service-uri` flag at the mean time like below: |
There was a problem hiding this comment.
| > If you want to use an existing BookKeeper cluster, you can add `--existing-bk-metadata-service-uri` flag at the mean time like below: | |
| > If you want to use an existing BookKeeper cluster, you can add the `--existing-bk-metadata-service-uri` flag as follows: |
| > --broker-service-url pulsar://host1:6650,host2:6650,host3:6650 \ | ||
| > --broker-service-url-tls pulsar+ssl://host1:6651,host2:6651,host3:6651 | ||
| > ``` | ||
| > The metadata service uri of existing BookKeeper cluster can be fetched via `bin/bookkeeper shell whatisinstanceid` command. Note that the value need to be enclosed in double quotes since the multi metadata service uri is semicolon separated. |
There was a problem hiding this comment.
| > The metadata service uri of existing BookKeeper cluster can be fetched via `bin/bookkeeper shell whatisinstanceid` command. Note that the value need to be enclosed in double quotes since the multi metadata service uri is semicolon separated. | |
| > You can obtain the metadata service URI of the existing BookKeeper cluster by using the `bin/bookkeeper shell whatisinstanceid` command. You must enclose the value in double quotes since the multiple metadata service URIs are separated with semicolons. |
| |`-c` , `--cluster`|Cluster name|| | ||
| |`--configuration-store`|The configuration store quorum connection string|| | ||
| |`-cs` , `--configuration-store`|The configuration store quorum connection string|| | ||
| |`--existing-bk-metadata-service-uri`|The metadata service uri of existing BookKeeper cluster you want to use|| |
There was a problem hiding this comment.
| |`--existing-bk-metadata-service-uri`|The metadata service uri of existing BookKeeper cluster you want to use|| | |
| |`--existing-bk-metadata-service-uri`|The metadata service URI of the existing BookKeeper cluster you want to use|| |
| |`-cs` , `--configuration-store`|The configuration store quorum connection string|| | ||
| |`--existing-bk-metadata-service-uri`|The metadata service uri of existing BookKeeper cluster you want to use|| | ||
| |`-h` , `--help`|Cluster name|false| | ||
| |`--initial-num-stream-storage-containers`|Num storage containers of BookKeeper stream storage|16| |
There was a problem hiding this comment.
what does "Num" mean?
There was a problem hiding this comment.
"Num" is short for number.
| |`-uw` , `--web-service-url`|The web service URL for the new cluster|| | ||
| |`-tw` , `--web-service-url-tls`|The web service URL for the new cluster with TLS encryption|| | ||
| |`-zk` , `--zookeeper`|The local ZooKeeper quorum connection string|| | ||
| |`--zookeeper-session-timeout-ms`|Local zookeeper session timeout ms|30000| |
There was a problem hiding this comment.
What does "ms" stand for in "Local zookeeper session timeout ms"?
There was a problem hiding this comment.
ms is the time unit which is short for millisecond.
There was a problem hiding this comment.
Thanks for your clarification. Maybe we can add it in the description, so it will be clear to users.
|
@murong00 I've left some minor comments. Any issue, feel free to ping me. |
@BewareMyPower I agree with you, however the result of command |
| |`-c` , `--cluster`|Cluster name|| | ||
| |`-cs` , `--configuration-store`|The configuration store quorum connection string|| | ||
| |`--existing-bk-metadata-service-uri`|The metadata service uri of existing BookKeeper cluster you want to use|| | ||
| |`--existing-bk-metadata-service-uri`|The metadata service URI of the existing BookKeeper cluster you want to us|| |
There was a problem hiding this comment.
| |`--existing-bk-metadata-service-uri`|The metadata service URI of the existing BookKeeper cluster you want to us|| | |
| |`--existing-bk-metadata-service-uri`|The metadata service URI of the existing BookKeeper cluster that you want to use|| |
| |`--existing-bk-metadata-service-uri`|The metadata service uri of existing BookKeeper cluster you want to use|| | ||
| |`--existing-bk-metadata-service-uri`|The metadata service URI of the existing BookKeeper cluster you want to us|| | ||
| |`-h` , `--help`|Cluster name|false| | ||
| |`--initial-num-stream-storage-containers`|Num storage containers of BookKeeper stream storage|16| |
There was a problem hiding this comment.
So shall we use "The number of storage containers of BookKeeper stream storage"
| |`--existing-bk-metadata-service-uri`|The metadata service URI of the existing BookKeeper cluster you want to us|| | ||
| |`-h` , `--help`|Cluster name|false| | ||
| |`--initial-num-stream-storage-containers`|Num storage containers of BookKeeper stream storage|16| | ||
| |`--initial-num-transaction-coordinators`|Num transaction coordinators will assigned in cluster|16| |
There was a problem hiding this comment.
The number of transaction coordinators assigned in a cluster
| |`-uw` , `--web-service-url`|The web service URL for the new cluster|| | ||
| |`-tw` , `--web-service-url-tls`|The web service URL for the new cluster with TLS encryption|| | ||
| |`-zk` , `--zookeeper`|The local ZooKeeper quorum connection string|| | ||
| |`--zookeeper-session-timeout-ms`|Local zookeeper session timeout ms|30000| |
There was a problem hiding this comment.
| |`--zookeeper-session-timeout-ms`|Local zookeeper session timeout ms|30000| | |
| |`--zookeeper-session-timeout-ms`|The local ZooKeeper session timeout. The time unit is in millisecond(ms).|30000| |
|
@jennifer88huang I hava addressed your comments, PTAL again. |
Jennifer88huang-zz
left a comment
There was a problem hiding this comment.
well done, thank you
|
/pulsarbot run-failure-checks |
Huanli-Meng
left a comment
There was a problem hiding this comment.
LGTM for doc-related updates.
apache#8269) Motivation Fixes apache#8130 Modifications rename --bookkeeper-metadata-service-uri by --existing-bk-metadata-service-uri to avoid misunderstanding add some specification of this parameter in corresponding md files * Refine BookKeeper metadata service uri when init metadata * address the review comments * address Jennifer's comment
apache#8269) Motivation Fixes apache#8130 Modifications rename --bookkeeper-metadata-service-uri by --existing-bk-metadata-service-uri to avoid misunderstanding add some specification of this parameter in corresponding md files * Refine BookKeeper metadata service uri when init metadata * address the review comments * address Jennifer's comment
--- *Motivation* #8269 change the arguments name which causes the setup metadata command is not compatible with old versions. For keeping the compatibility of the setup metadata command, we should avoid deleting the existing arguments. If we need to change it, it's better to keep the old arguments and mark it deprecates and hide them.
Motivation
Fixes #8130
Modifications
--bookkeeper-metadata-service-uriby--existing-bk-metadata-service-urito avoid misunderstanding