Skip to content

Conversation

@murong00
Copy link
Contributor

Motivation

Fixes #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

@murong00
Copy link
Contributor Author

@BewareMyPower @jennifer88huang Please help to take a look about this change, thanks.

@murong00 murong00 requested a review from sijie October 15, 2020 11:01
@BewareMyPower
Copy link
Contributor

LGTM. Just one point, I think it's better to change

--existing-bk-metadata-service-uri "zk+null://bk1:2181;bk2:2181/ledgers"

to zk1:2181,zk2:2181 to emphasize that the metadata store is ZK (not Etcd,etc.) or just host1:2181,host2:2181 to be consistent with other params.

> --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:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> 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:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

> --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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
> 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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, done.

|`-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||
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|`--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||

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

|`-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|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does "Num" mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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|
Copy link
Contributor

@Jennifer88huang-zz Jennifer88huang-zz Oct 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "ms" stand for in "Local zookeeper session timeout ms"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ms is the time unit which is short for millisecond.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your clarification. Maybe we can add it in the description, so it will be clear to users.

@Jennifer88huang-zz
Copy link
Contributor

@murong00 I've left some minor comments. Any issue, feel free to ping me.

@murong00
Copy link
Contributor Author

LGTM. Just one point, I think it's better to change

--existing-bk-metadata-service-uri "zk+null://bk1:2181;bk2:2181/ledgers"

to zk1:2181,zk2:2181 to emphasize that the metadata store is ZK (not Etcd,etc.) or just host1:2181,host2:2181 to be consistent with other params.

@BewareMyPower I agree with you, however the result of command bin/bookkeeper shell whatisinstanceid is semicolon separated in multi-hosts case (due to bookkeeper only support semicolon separated values currently, you can refer to #6998 for some detail), if we replace semicolon with comma the BkClient will fail to be created, so I just keep its result here.

|`-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||
Copy link
Contributor

@Jennifer88huang-zz Jennifer88huang-zz Oct 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|`--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|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
|`--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|

@murong00
Copy link
Contributor Author

@jennifer88huang I hava addressed your comments, PTAL again.

Copy link
Contributor

@Jennifer88huang-zz Jennifer88huang-zz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done, thank you

@murong00
Copy link
Contributor Author

/pulsarbot run-failure-checks

Copy link
Contributor

@Huanli-Meng Huanli-Meng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM for doc-related updates.

@jiazhai jiazhai merged commit 3147e9e into apache:master Oct 21, 2020
huangdx0726 pushed a commit to huangdx0726/pulsar that referenced this pull request Nov 13, 2020
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
flowchartsman pushed a commit to flowchartsman/pulsar that referenced this pull request Nov 17, 2020
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
sijie pushed a commit that referenced this pull request Dec 16, 2020
---

*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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[doc] BookKeeper metadata service url should be documented when init metadata

5 participants