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:
parent
404cdce722
commit
17daaca0f3
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue