HBASE-9560 bin/hbase clean --cleanAll should not skip data cleaning if in local mode

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1524202 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Enis Soztutar 2013-09-17 20:12:10 +00:00
parent c3f03e3710
commit 1dca2b68ad
1 changed files with 0 additions and 7 deletions

View File

@ -51,13 +51,6 @@ fi
format_option=$1; format_option=$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
exit 1;
fi
zparent=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool zookeeper.znode.parent` zparent=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool zookeeper.znode.parent`
if [ "$zparent" == "null" ]; then zparent="/hbase"; fi if [ "$zparent" == "null" ]; then zparent="/hbase"; fi