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:
parent
e41bc102bb
commit
4dc83021b1
|
@ -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
|
||||
|
||||
|
|
|
@ -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)"
|
||||
|
|
Loading…
Reference in New Issue