Return-Path: Delivered-To: apmail-hadoop-core-commits-archive@www.apache.org Received: (qmail 96097 invoked from network); 22 May 2009 05:36:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 May 2009 05:36:40 -0000 Received: (qmail 5049 invoked by uid 500); 22 May 2009 05:36:52 -0000 Delivered-To: apmail-hadoop-core-commits-archive@hadoop.apache.org Received: (qmail 4973 invoked by uid 500); 22 May 2009 05:36:52 -0000 Mailing-List: contact core-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-commits@hadoop.apache.org Received: (qmail 4964 invoked by uid 99); 22 May 2009 05:36:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 05:36:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 May 2009 05:36:42 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 54C84118BF for ; Fri, 22 May 2009 05:36:21 +0000 (GMT) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: core-commits@hadoop.apache.org Date: Fri, 22 May 2009 05:36:20 -0000 Message-ID: <20090522053620.11869.41466@eos.apache.org> Subject: [Hadoop Wiki] Update of "Hbase/RollingRestart" by stack X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Hadoop Wiki" for change notification. The following page has been changed by stack: http://wiki.apache.org/hadoop/Hbase/RollingRestart New page: If you want to upgrade between point versions -- e.g. from 0.20.0 to 0.20.1 -- of HBase or change configurations WITHOUT bringing down your whole cluster -- i.e. you want to keep serving through the upgrade -- follow the below '''Rolling Restart''' receipe. This feature is available in 0.20.0 HBase (Unreleased as of the writing of this page). 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. 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.