Author: apurtell
Date: Tue Nov 17 08:12:08 2009
New Revision: 881186
URL: http://svn.apache.org/viewvc?rev=881186&view=rev
Log:
HBASE 1961; missing hunks from last commit
Modified:
hadoop/hbase/trunk/src/contrib/ec2/bin/revoke-hbase-cluster-secgroups
Modified: hadoop/hbase/trunk/src/contrib/ec2/bin/revoke-hbase-cluster-secgroups
URL:
http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/contrib/ec2/bin/revoke-hbase-cluster-secgroups?rev=881186&r1=881185&r2=881186&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/contrib/ec2/bin/revoke-hbase-cluster-secgroups
(original)
+++ hadoop/hbase/trunk/src/contrib/ec2/bin/revoke-hbase-cluster-secgroups Tue
Nov 17 08:12:08 2009
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+set -x
+
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
@@ -36,14 +38,14 @@
ec2-revoke $TOOL_OPTS $CLUSTER_MASTER -o $CLUSTER_MASTER -u $AWS_ACCOUNT_ID
fi
-ec2-describe-group | egrep "[[:space:]]$CLUSTER[[:space:]]" > /dev/null
+ec2-describe-group $TOOL_OPTS | egrep "[[:space:]]$CLUSTER[[:space:]]" >
/dev/null
if [ $? -eq 0 ]; then
ec2-revoke $TOOL_OPTS $CLUSTER -o $CLUSTER -u $AWS_ACCOUNT_ID
ec2-revoke $TOOL_OPTS $CLUSTER_MASTER -o $CLUSTER -u $AWS_ACCOUNT_ID
ec2-revoke $TOOL_OPTS $CLUSTER -o $CLUSTER_MASTER -u $AWS_ACCOUNT_ID
fi
-ec2-describe-group | egrep "[[:space:]]$CLUSTER_ZOOKEEPER[[:space:]]" >
/dev/null
+ec2-describe-group $TOOL_OPTS | egrep
"[[:space:]]$CLUSTER_ZOOKEEPER[[:space:]]" > /dev/null
if [ $? -eq 0 ]; then
ec2-revoke $TOOL_OPTS $CLUSTER_ZOOKEEPER -o $CLUSTER_ZOOKEEPER -u
$AWS_ACCOUNT_ID
ec2-revoke $TOOL_OPTS $CLUSTER_MASTER -o $CLUSTER_ZOOKEEPER -u
$AWS_ACCOUNT_ID