HBASE-3881 Add disable balancer in graceful_stop.sh script

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1102857 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2011-05-13 18:37:55 +00:00
parent e41bc102bb
commit 4dc83021b1
2 changed files with 3 additions and 0 deletions

View File

@ -257,6 +257,7 @@ Release 0.90.4 - Unreleased
BUG FIXES
HBASE-3878 Hbase client throws NoSuchElementException (Ted Yu)
HBASE-3881 Add disable balancer in graceful_stop.sh script
Release 0.90.3 - Unreleased

View File

@ -69,6 +69,8 @@ fi
hostname=$1
filename="/tmp/$hostname"
# Run the region mover script.
echo "Disabling balancer!"
echo 'balance_switch false' | "$bin"/hbase shell
echo "Unloading $hostname region(s)"
HBASE_NOEXEC=true "$bin"/hbase org.jruby.Main "$bin"/region_mover.rb --file=$filename $debug unload $hostname
echo "Unloaded $hostname region(s)"