try harder to start up the quorum ensemble instances

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@923529 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2010-03-16 00:48:06 +00:00
parent 45afc8f15f
commit f9df757d71

View File

@ -84,6 +84,10 @@ echo "Initializing the ZooKeeper quorum ensemble"
for host in $peers ; do
echo " $host"
scp $SSH_OPTS "$bin"/hbase-ec2-init-zookeeper-remote.sh "root@${host}:/var/tmp"
ssh $SSH_OPTS "root@${host}" "sh -c \"ZOOKEEPER_QUORUM=\"$ZOOKEEPER_QUORUM\" sh /var/tmp/hbase-ec2-init-zookeeper-remote.sh\""
i=0
while [ $i -lt 3 ] ; do
scp $SSH_OPTS "$bin"/hbase-ec2-init-zookeeper-remote.sh "root@${host}:/var/tmp" && ssh $SSH_OPTS "root@${host}" "sh -c \"ZOOKEEPER_QUORUM=\"$ZOOKEEPER_QUORUM\" sh /var/tmp/hbase-ec2-init-zookeeper-remote.sh\"" && break
sleep 5
i=$(($i + 1))
done
done