Skip to content

Commit

Permalink
Merge pull request #228 from Yolean/4.3.x-fix-zookeeper-persistence
Browse files Browse the repository at this point in the history
Upgrade path for the zookeeper persistence issue
  • Loading branch information
solsson authored Dec 3, 2018
2 parents 198666d + e55d817 commit f96c755
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
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

0 comments on commit f96c755

Please sign in to comment.