From 917e65c191d098b0f613ef712b3e0d3a27b54e2a Mon Sep 17 00:00:00 2001 From: Tikiri Diasena Date: Fri, 27 Sep 2019 17:02:00 +0530 Subject: [PATCH] Update stop-hbase.sh --- bin/stop-hbase.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/stop-hbase.sh b/bin/stop-hbase.sh index 4a1968145890..f38474464d32 100755 --- a/bin/stop-hbase.sh +++ b/bin/stop-hbase.sh @@ -44,7 +44,7 @@ logout=$HBASE_LOG_DIR/$HBASE_LOG_PREFIX.out loglog="${HBASE_LOG_DIR}/${HBASE_LOGFILE}" pid=${HBASE_PID_DIR:-/tmp}/hbase-$HBASE_IDENT_STRING-master.pid -if [[ -e $pid ]]; then +if [ -e $pid ]; then echo -n stopping hbase echo "`date` Stopping hbase (via master)" >> $loglog @@ -62,7 +62,7 @@ fi # distributed == false means that the HMaster will kill ZK when it exits # HBASE-6504 - only take the first line of the output in case verbose gc is on distMode=`$bin/hbase --config "$HBASE_CONF_DIR" org.apache.hadoop.hbase.util.HBaseConfTool hbase.cluster.distributed | head -n 1` -if [ "$distMode" == 'true' ] +if [ "$distMode" = 'true' ] then "$bin"/hbase-daemons.sh --config "${HBASE_CONF_DIR}" stop zookeeper fi