You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by sy...@apache.org on 2016/06/17 05:01:52 UTC

[10/30] hbase git commit: HBASE-16021 graceful_stop.sh: Wrap variables in double quote to avoid "[: too many arguments" error (Samir Ahmic)

HBASE-16021 graceful_stop.sh: Wrap variables in double quote to avoid "[: too many arguments" error (Samir Ahmic)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/b69c77ac
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/b69c77ac
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/b69c77ac

Branch: refs/heads/hbase-12439
Commit: b69c77ac1a5f67ced25952f9cf85fac768427880
Parents: 1621257
Author: tedyu <yu...@gmail.com>
Authored: Tue Jun 14 15:36:11 2016 -0700
Committer: tedyu <yu...@gmail.com>
Committed: Tue Jun 14 15:36:11 2016 -0700

----------------------------------------------------------------------
 bin/graceful_stop.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/b69c77ac/bin/graceful_stop.sh
----------------------------------------------------------------------
diff --git a/bin/graceful_stop.sh b/bin/graceful_stop.sh
index 510411e..8d08cc9 100755
--- a/bin/graceful_stop.sh
+++ b/bin/graceful_stop.sh
@@ -101,7 +101,7 @@ if [ "$localhostname" == "$hostname" ]; then
   local=true
 fi
 
-if [ $nob == "true"  ]; then
+if [ "$nob" == "true"  ]; then
   log "[ $0 ] skipping disabling balancer -nob argument is used"
   HBASE_BALANCER_STATE=false
 else
@@ -175,7 +175,7 @@ if [ "$restart" != "" ]; then
 fi
 
 # Restore balancer state
-if [ $HBASE_BALANCER_STATE != "false" ] && [ $nob != "true"  ]; then
+if [ "$HBASE_BALANCER_STATE" != "false" ] && [ "$nob" != "true"  ]; then
   log "Restoring balancer state to $HBASE_BALANCER_STATE"
   echo "balance_switch $HBASE_BALANCER_STATE" | "$bin"/hbase --config ${HBASE_CONF_DIR} shell &> /dev/null
 else