diff --git a/bin/hbase b/bin/hbase index 0a51b63b354..62025f2c156 100755 --- a/bin/hbase +++ b/bin/hbase @@ -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 diff --git a/bin/hbase-cleanup.sh b/bin/hbase-cleanup.sh index 85f5c881ce4..1c7e0fcd76c 100644 --- a/bin/hbase-cleanup.sh +++ b/bin/hbase-cleanup.sh @@ -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