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:
parent
c3f03e3710
commit
1dca2b68ad
|
@ -51,13 +51,6 @@ fi
|
|||
|
||||
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`
|
||||
if [ "$zparent" == "null" ]; then zparent="/hbase"; fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue