HBASE-8030 znode path of online region servers is hard coded in rolling_restart.sh (Rajeshbabu)

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1454170 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2013-03-07 23:45:38 +00:00
parent 3361261726
commit 229789adf2
1 changed files with 4 additions and 1 deletions

View File

@ -149,7 +149,10 @@ else
if [ $RR_GRACEFUL -eq 1 ]; then
# gracefully restart all online regionservers
online_regionservers=`$bin/hbase zkcli ls $zparent/rs 2>&1 | tail -1 | sed "s/\[//" | sed "s/\]//"`
zkrs=`$bin/hbase org.apache.hadoop.hbase.util.HBaseConfTool zookeeper.znode.rs`
if [ "$zkrs" == "null" ]; then zkrs="rs"; fi
zkrs="$zparent/$zkrs"
online_regionservers=`$bin/hbase zkcli ls $zkrs 2>&1 | tail -1 | sed "s/\[//" | sed "s/\]//"`
for rs in $online_regionservers
do
rs_parts=(${rs//,/ })