You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by ap...@apache.org on 2009/12/05 23:40:56 UTC
svn commit: r887604 -
/hadoop/hbase/branches/0.20/src/contrib/ec2/bin/launch-hbase-zookeeper
Author: apurtell
Date: Sat Dec 5 22:40:56 2009
New Revision: 887604
URL: http://svn.apache.org/viewvc?rev=887604&view=rev
Log:
HBASE-1961 EC2 scripts; try again wrt. launch-hbase-zookeeper
Modified:
hadoop/hbase/branches/0.20/src/contrib/ec2/bin/launch-hbase-zookeeper
Modified: hadoop/hbase/branches/0.20/src/contrib/ec2/bin/launch-hbase-zookeeper
URL: http://svn.apache.org/viewvc/hadoop/hbase/branches/0.20/src/contrib/ec2/bin/launch-hbase-zookeeper?rev=887604&r1=887603&r2=887604&view=diff
==============================================================================
--- hadoop/hbase/branches/0.20/src/contrib/ec2/bin/launch-hbase-zookeeper (original)
+++ hadoop/hbase/branches/0.20/src/contrib/ec2/bin/launch-hbase-zookeeper Sat Dec 5 22:40:56 2009
@@ -49,7 +49,8 @@
peers=""
public_names=""
-for inst in {1..$NO_INSTANCES} ; do
+inst=0
+while [ $inst -lt $NO_INSTANCES ] ; do
echo "Starting an AMI with ID $ZOO_AMI_IMAGE (arch $arch) in group $CLUSTER_ZOOKEEPER"
INSTANCE=`ec2-run-instances $ZOO_AMI_IMAGE $TOOL_OPTS -n 1 -g $CLUSTER_ZOOKEEPER -k root -t $type | grep INSTANCE | awk '{print $2}'`
echo -n "Waiting for instance $INSTANCE to start: "
@@ -67,6 +68,7 @@
public=`ec2-describe-instances $TOOL_OPTS $INSTANCE | grep running | awk '{print $4}'`
echo " Public DNS name is $public."
public_names="$public_names $public"
+ inst=$(($inst + 1))
done
ZOOKEEPER_QUORUM=`echo $peers | sed -e 's/ /,/g'`