hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r1488045 - in /hbase/trunk/bin: hbase hbase-cleanup.sh
Date Thu, 30 May 2013 23:11:18 GMT
Author: stack
Date: Thu May 30 23:11:17 2013
New Revision: 1488045

URL: http://svn.apache.org/r1488045
Log:
HBASE-8658 hbase clean is deaf to the --config DIR option

Modified:
    hbase/trunk/bin/hbase
    hbase/trunk/bin/hbase-cleanup.sh

Modified: hbase/trunk/bin/hbase
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase?rev=1488045&r1=1488044&r2=1488045&view=diff
==============================================================================
--- hbase/trunk/bin/hbase (original)
+++ hbase/trunk/bin/hbase Thu May 30 23:11:17 2013
@@ -321,7 +321,7 @@ elif [ "$COMMAND" = "clean" ] ; then
     echo "        --cleanAll  cleans hbase related data from both zookeeper and hdfs."
     exit 1;
   fi
-  "$bin"/hbase-cleanup.sh $@
+  "$bin"/hbase-cleanup.sh --config ${HBASE_CONF_DIR} $@
   exit $?
 
 elif [ "$COMMAND" = "classpath" ] ; then

Modified: hbase/trunk/bin/hbase-cleanup.sh
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase-cleanup.sh?rev=1488045&r1=1488044&r2=1488045&view=diff
==============================================================================
--- hbase/trunk/bin/hbase-cleanup.sh (original)
+++ hbase/trunk/bin/hbase-cleanup.sh Thu May 30 23:11:17 2013
@@ -51,7 +51,7 @@ fi
 
 format_option=$1;
 
-distMode=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed
| head -n 1`
+distMode=`$bin/hbase --config ${HBASE_CONF_DIR} org.apache.hadoop.hbase.util.HBaseConfTool
hbase.cluster.distributed | head -n 1`
 
 if [ "$distMode" == 'false' ];then
   echo "Skipping hbase data clearing in standalone mode." 2>&1



Mime
View raw message