Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

copy zookeeper dataDir to confluent_current #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dustinfarris
Copy link

confluent transforms the zookeeper dataDir property to point to a confluent-created working directory. this is fine in zookeeper standalone mode (the default), because this directory is only used during runtime to store snapshots and a log.

In replicated mode, however, zookeeper expects a user-created file called myid to exist.

This PR rsyncs the contents of zookeeper's user-configured dataDir to confluent's working dir.

Fixes #46

cc @windman83

this is important when the user is starting zookeeper in replicated mode — zookeeper expects a user-created file called `myid` to exist in the dataDir
@@ -347,6 +347,11 @@ start_zookeeper() {

config_zookeeper() {
config_service "zookeeper" "kafka" "zookeeper" "dataDir"

# copy the contents of `dataDir` to the working confluent zookeeper data directory
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be helpful to know "why" instead of "what" in the comment here

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants