HBASE-8658 hbase clean is deaf to the --config DIR option

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1488045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-05-30 23:11:17 +00:00
parent 404cdce722
commit 17daaca0f3
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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