hbase-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=887595&view=rev
Log:
HBASE-1961 EC2 scripts; use a more portable idiom for a for loop

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=887595&r1=887594&r2=887595&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 21:58:06 2009
@@ -49,7 +49,7 @@
 
 peers=""
 public_names=""
-for inst in `seq 1 $NO_INSTANCES` ; do 
+for inst in {1..$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: "



Mime
View raw message