hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r887598 - /hadoop/hbase/trunk/src/contrib/ec2/bin/launch-hbase-zookeeper
Date Sat, 05 Dec 2009 22:11:44 GMT
Author: apurtell
Date: Sat Dec  5 22:11:44 2009
New Revision: 887598

URL: http://svn.apache.org/viewvc?rev=887598&view=rev
Log:
HBASE-1961 EC2 scripts; try again wrt. launch-hbase-zookeeper

Modified:
    hadoop/hbase/trunk/src/contrib/ec2/bin/launch-hbase-zookeeper

Modified: hadoop/hbase/trunk/src/contrib/ec2/bin/launch-hbase-zookeeper
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/contrib/ec2/bin/launch-hbase-zookeeper?rev=887598&r1=887597&r2=887598&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/contrib/ec2/bin/launch-hbase-zookeeper (original)
+++ hadoop/hbase/trunk/src/contrib/ec2/bin/launch-hbase-zookeeper Sat Dec  5 22:11:44 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'`



Mime
View raw message