Skip to content
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

Upgrade path for the zookeeper persistence issue #228

Merged
merged 3 commits into from
Dec 3, 2018
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions zookeeper/10zookeeper-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ data:
#!/bin/bash
set -x

[ -d /var/lib/zookeeper/data ] || mkdir /var/lib/zookeeper/data
[ -z "$ID_OFFSET" ] && ID_OFFSET=1
export ZOOKEEPER_SERVER_ID=$((${HOSTNAME##*-} + $ID_OFFSET))
echo "${ZOOKEEPER_SERVER_ID:-1}" | tee /var/lib/zookeeper/data/myid
Expand Down
4 changes: 2 additions & 2 deletions zookeeper/50pzoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
- name: config
mountPath: /etc/kafka
- name: data
mountPath: /var/lib/zookeeper/data
mountPath: /var/lib/zookeeper
containers:
- name: zookeeper
image: solsson/kafka:1.0.2@sha256:7fdb326994bcde133c777d888d06863b7c1a0e80f043582816715d76643ab789
Expand Down Expand Up @@ -65,7 +65,7 @@ spec:
- name: config
mountPath: /etc/kafka
- name: data
mountPath: /var/lib/zookeeper/data
mountPath: /var/lib/zookeeper
volumes:
- name: configmap
configMap:
Expand Down
4 changes: 2 additions & 2 deletions zookeeper/51zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
- name: config
mountPath: /etc/kafka
- name: data
mountPath: /var/lib/zookeeper/data
mountPath: /var/lib/zookeeper
containers:
- name: zookeeper
image: solsson/kafka:1.0.2@sha256:7fdb326994bcde133c777d888d06863b7c1a0e80f043582816715d76643ab789
Expand Down Expand Up @@ -68,7 +68,7 @@ spec:
- name: config
mountPath: /etc/kafka
- name: data
mountPath: /var/lib/zookeeper/data
mountPath: /var/lib/zookeeper
volumes:
- name: configmap
configMap:
Expand Down