Return-Path: Delivered-To: apmail-hadoop-hbase-commits-archive@minotaur.apache.org Received: (qmail 54236 invoked from network); 17 Mar 2010 07:23:38 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Mar 2010 07:23:38 -0000 Received: (qmail 84215 invoked by uid 500); 17 Mar 2010 07:23:38 -0000 Delivered-To: apmail-hadoop-hbase-commits-archive@hadoop.apache.org Received: (qmail 84186 invoked by uid 500); 17 Mar 2010 07:23:38 -0000 Mailing-List: contact hbase-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-dev@hadoop.apache.org Delivered-To: mailing list hbase-commits@hadoop.apache.org Received: (qmail 84177 invoked by uid 99); 17 Mar 2010 07:23:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 07:23:38 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Mar 2010 07:23:35 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 5C37123889BF; Wed, 17 Mar 2010 07:23:14 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r924178 - in /hadoop/hbase/trunk/contrib/ec2/bin: list-hbase-master list-hbase-slaves list-hbase-zookeeper Date: Wed, 17 Mar 2010 07:23:14 -0000 To: hbase-commits@hadoop.apache.org From: apurtell@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100317072314.5C37123889BF@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: apurtell Date: Wed Mar 17 07:23:14 2010 New Revision: 924178 URL: http://svn.apache.org/viewvc?rev=924178&view=rev Log: list-hbase-{master,slaves,zookeeper} utility scripts Added: hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-master (with props) hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-slaves (with props) hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-zookeeper (with props) Added: hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-master URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-master?rev=924178&view=auto ============================================================================== --- hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-master (added) +++ hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-master Wed Mar 17 07:23:14 2010 @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +# 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. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Launch an EC2 HBase slaves. + +if [ -z $1 ]; then + echo "Cluster name required!" + exit 1 +fi + +CLUSTER=$1 + +# Import variables +bin=`dirname "$0"` +bin=`cd "$bin"; pwd` +. "$bin"/hbase-ec2-env.sh + +cat $MASTER_ADDR_PATH Propchange: hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-master ------------------------------------------------------------------------------ svn:executable = * Added: hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-slaves URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-slaves?rev=924178&view=auto ============================================================================== --- hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-slaves (added) +++ hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-slaves Wed Mar 17 07:23:14 2010 @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +# 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. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Launch an EC2 HBase slaves. + +if [ -z $1 ]; then + echo "Cluster name required!" + exit 1 +fi + +CLUSTER=$1 + +# Import variables +bin=`dirname "$0"` +bin=`cd "$bin"; pwd` +. "$bin"/hbase-ec2-env.sh + +if [ ! -f $INSTANCES_PATH ]; then + echo "Must start Cluster first!" + exit 1 +fi + +instances=`cat $INSTANCES_PATH` +ec2-describe-instances $TOOL_OPTS $instances | grep INSTANCE | grep running | awk '{print $4}' Propchange: hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-slaves ------------------------------------------------------------------------------ svn:executable = * Added: hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-zookeeper URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-zookeeper?rev=924178&view=auto ============================================================================== --- hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-zookeeper (added) +++ hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-zookeeper Wed Mar 17 07:23:14 2010 @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +# 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. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# Launch an EC2 HBase slaves. + +if [ -z $1 ]; then + echo "Cluster name required!" + exit 1 +fi + +CLUSTER=$1 + +# Import variables +bin=`dirname "$0"` +bin=`cd "$bin"; pwd` +. "$bin"/hbase-ec2-env.sh + +cat $ZOOKEEPER_QUORUM_PATH Propchange: hadoop/hbase/trunk/contrib/ec2/bin/list-hbase-zookeeper ------------------------------------------------------------------------------ svn:executable = *