File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
test/images/pets/zookeeper-installer Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 85
85
./test/e2e_node/environment/setup_host.sh
86
86
./test/e2e_node/gubernator.sh
87
87
./test/images/image-util.sh
88
- ./test/images/pets/zookeeper-installer/install.sh
89
- ./test/images/pets/zookeeper-installer/on-start.sh
90
88
./test/images/volume/gluster/run_gluster.sh
91
89
./test/images/volume/iscsi/create_block.sh
92
90
./test/images/volume/nfs/run_nfs.sh
Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ cp "${INSTALL_VOLUME}"/zookeeper/conf/zoo_sample.cfg "${INSTALL_VOLUME}"/zookeep
55
55
56
56
# TODO: Should dynamic config be tied to the version?
57
57
IFS=" ." read -ra RELEASE <<< " ${VERSION}"
58
- if [ $( expr " ${RELEASE[1]} " ) -gt 4 ]; then
58
+ if [ " $(( "${RELEASE[1]} ")) " -gt 4 ]; then
59
59
echo zookeeper-" ${VERSION} " supports dynamic reconfiguration, enabling it
60
60
echo " standaloneEnabled=false" >> " ${INSTALL_VOLUME} " /zookeeper/conf/zoo.cfg
61
- echo " dynamicConfigFile=" ${INSTALL_VOLUME} " /zookeeper/conf/zoo.cfg.dynamic" >> " ${INSTALL_VOLUME} " /zookeeper/conf/zoo.cfg
61
+ echo " dynamicConfigFile=${INSTALL_VOLUME} /zookeeper/conf/zoo.cfg.dynamic" >> " ${INSTALL_VOLUME} " /zookeeper/conf/zoo.cfg
62
62
fi
63
63
64
64
# TODO: This is a hack, netcat is convenient to have in the zookeeper container
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ MY_ID_FILE=/tmp/zookeeper/myid
36
36
HOSTNAME=$( hostname)
37
37
38
38
while read -ra LINE; do
39
- PEERS=(" ${PEERS[@]} " $LINE )
39
+ PEERS=(" ${PEERS[@]} " " $LINE " )
40
40
done
41
41
42
42
# Don't add the first member as an observer
@@ -56,7 +56,7 @@ echo "" > "${CFG_BAK}"
56
56
i=0
57
57
LEADER=$HOSTNAME
58
58
for peer in " ${PEERS[@]} " ; do
59
- let i=i+1
59
+ (( i= i+ 1 ))
60
60
if [[ " ${peer} " == * " ${HOSTNAME} " * ]]; then
61
61
MY_ID=$i
62
62
MY_NAME=${peer}
@@ -94,10 +94,10 @@ ADD_SERVER="server.$MY_ID=$MY_NAME:2888:3888:participant;0.0.0.0:2181"
94
94
95
95
# Prove that we've actually joined the running cluster
96
96
ITERATION=0
97
- until $( echo config | /opt/nc localhost 2181 | grep " ${ADD_SERVER} " > /dev/null) ; do
97
+ until echo config | /opt/nc localhost 2181 | grep " ${ADD_SERVER} " > /dev/null; do
98
98
echo $ITERATION ] waiting for updated config to sync back to localhost
99
99
sleep 1
100
- let ITERATION=ITERATION+1
100
+ (( ITERATION= ITERATION+ 1 ))
101
101
if [ $ITERATION -eq 20 ]; then
102
102
exit 1
103
103
fi
You can’t perform that action at this time.
0 commit comments