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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/oss/confluent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

local input_file="${confluent_conf}/kafka/zookeeper.properties"
local data_dir="$(sed -ne '/dataDir/ s/.*\= *//p' ${input_file})"
rsync -a $data_dir/ $confluent_current/zookeeper/data
}

export_zookeeper() {
Expand Down