You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by Apache Wiki <wi...@apache.org> on 2010/02/11 07:03:26 UTC
[Hadoop Wiki] Trivial Update of "Hbase/RollingRestart" by stack
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification.
The "Hbase/RollingRestart" page has been changed by stack.
The comment on this change is: Do master first.
http://wiki.apache.org/hadoop/Hbase/RollingRestart?action=diff&rev1=3&rev2=4
--------------------------------------------------
In the below, you will take down one or more servers at a time, upgrade or change their configuration, and then bring the servers back on line afterward. Ideally, you'd do the upgrade a server-at-a-time to minimize region churn but if your cluster large, you can upgrade a few on each iteration. Just be sure that the number of servers you drop is not of a proportion as to render your serving cluster a mortal blow.
+ Do the master first (hbase-2190 requires it). You'll need to kill it. If you do {{{./bin/hbase-daemon.sh stop master}}}, it'll stop the whole cluster. Make sure the master is not in the midst of handling a regionserver crash splitting logs. Otherwise, killing its should be safe. Once its dead, start it up again with: {{{$ ${HBASE_HOME}/bin/hbase-daemon.sh start master}}}.
+
Per regionserver, first update the pertinent jar or configuration. Next, run the following to stop the server: {{{$ ${HBASE_HOME}/bin/hbase-daemon.sh stop regionserver}}}. Wait until the server comes to a complete stop. Then restart it by doing the following: {{{$ ${HBASE_HOME}/bin/hbase-daemon.sh start regionserver}}}.
-
- For the master, you'll need to kill it. If you do {{{./bin/hbase-daemon.sh stop master}}}, it'll stop the whole cluster. Make sure the master is not in the midst of handling a regionserver crash splitting logs. Otherwise, killing its should be safe. Once its dead, start it up again with: {{{$ ${HBASE_HOME}/bin/hbase-daemon.sh start master}}}.
The above currently will not work for minor upgrades where data migration may be required or where RPC version numbers have changed.