-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[issue 8337][Worker] Move initialize dlog namespace metadata to bin/pulsar #8781
Conversation
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.
Overall the change looks good to me. I left two comments. PTAL.
pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/Worker.java
Outdated
Show resolved
Hide resolved
pulsar-broker/src/main/java/org/apache/pulsar/PulsarInitialDlogNamespaceMetadataSetup.java
Outdated
Show resolved
Hide resolved
6423e6a
to
2b1a216
Compare
dcc634c
to
4f5d8d5
Compare
pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/Worker.java
Outdated
Show resolved
Hide resolved
pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/Worker.java
Outdated
Show resolved
Hide resolved
ping @nodece |
4f5d8d5
to
20bb187
Compare
We may need to consider adding some documentation on how to use this command @jennifer88huang |
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.
+1
Signed-off-by: Zixuan Liu <nodeces@gmail.com>
20bb187
to
c341217
Compare
@tuteng @jennifer88huang thanks, I did update at #8781 (comment), but I'm not sure what to add document to the official website. |
@tuteng @jennifer88huang once pr is merged, I will make a new PR for this doc. |
/pulsarbot run-failure-checks |
That's great, thank you. |
/pulsarbot run-failure-checks |
1 similar comment
/pulsarbot run-failure-checks |
/pulsarbot run-failure-checks |
1 similar comment
/pulsarbot run-failure-checks |
@jennifer88huang I made a PR for document: #9185. |
@codelipenghui Thanks, move this pr to 2.8.0, delete label release/2.7.1 |
@nodece Just a soft reminder. We still need to add doc for the update in this pr.
|
@Anonymitaet It seems so. Thanks for reminding me. |
Fixes #8337
Motivation
Currently, the starting function worker service will initialize the distributed log namespace. when initializing the distributed log namespace, the zookeeper will be connected. A better way is to implement a tool to initialize the distributed log namespace, which is similar to
./bin/pulsar initialize-cluster-metadata
.Modifications
./bin/pulsar initialize-cluster-metadata
conf/functions_worker.yml
Doc
If you want to initialize distributed log metadata by
bin/pulsar
, you need to perform the following steps:./bin/pulsar initialize-cluster-metadata
to initialize clustertrue
infunctions_worker.yml
Note: All the changes are compatible.
Verifying this change