Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74975F9DA for ; Mon, 8 Apr 2013 04:44:12 +0000 (UTC) Received: (qmail 36397 invoked by uid 500); 8 Apr 2013 04:44:10 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 36189 invoked by uid 500); 8 Apr 2013 04:44:10 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 36152 invoked by uid 99); 8 Apr 2013 04:44:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 04:44:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of anoopsj@huawei.com designates 119.145.14.64 as permitted sender) Received: from [119.145.14.64] (HELO szxga01-in.huawei.com) (119.145.14.64) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 04:44:03 +0000 Received: from 172.24.2.119 (EHLO szxeml207-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.4-GA FastPath queued) with ESMTP id BAG12122; Mon, 08 Apr 2013 12:43:38 +0800 (CST) Received: from SZXEML417-HUB.china.huawei.com (10.82.67.156) by szxeml207-edg.china.huawei.com (172.24.2.56) with Microsoft SMTP Server (TLS) id 14.1.323.7; Mon, 8 Apr 2013 12:43:38 +0800 Received: from SZXEML553-MBS.china.huawei.com ([169.254.6.20]) by szxeml417-hub.china.huawei.com ([10.82.67.156]) with mapi id 14.01.0323.007; Mon, 8 Apr 2013 12:43:38 +0800 From: Anoop Sam John To: "user@hbase.apache.org" Subject: RE: Disabling balancer permanently in HBase Thread-Topic: Disabling balancer permanently in HBase Thread-Index: AQHOM91bg1o2gHZo/02lVkLrkj8FkZjKzsQAgAAlXoCAAMrVAQ== Date: Mon, 8 Apr 2013 04:43:37 +0000 Message-ID: <0CE69E9126D0344088798A3B7F7F80864897621E@szxeml553-mbs.china.huawei.com> References: <1365372866.95990.YahooMailNeo@web194002.mail.sg3.yahoo.com> , In-Reply-To: Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.96.95] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org HBASE-6260 made the balancer state to be persisted in ZK so that the restar= t of the Master wont have an issue. But this is available with 0.95 only. Just telling FYI -Anoop- ________________________________________ From: Jean-Marc Spaggiari [jean-marc@spaggiari.org] Sent: Monday, April 08, 2013 6:05 AM To: user@hbase.apache.org Subject: Re: Disabling balancer permanently in HBase 2 other options: 1) Build your own balancer which always returns null and set it with hbase.master.loadbalancer.class; (*) 2) Give a dummy non-existing class for hbase.master.loadbalancer.class ? (*= *) (*) hbase.master.loadbalancer.class is still missing in the documentation. HBASE-7296 has been opened last year. Might be good if someone can apply it. (**) I have not tried that, so I have no idea if this is working or not. However, if the class given for the load balancer doesn't exist, I think it will "simply" log an error on the logs and return. But you will have to test that. Finally, maybe we should have something like hbase.master.loadbalancer.disable that we can setup to TRUE if we want to totaly disable load balancing? (Even if this is not recommanded). JM 2013/4/7 Stack : > Try setting the hbase.balancer.period to a very high number in you > hbase-site.xml: > http://hbase.apache.org/book.html#hbase.master.dns.nameserver > > St.Ack > > > On Sun, Apr 7, 2013 at 3:14 PM, Akshay Singh wrot= e: > >> Hi, >> >> I am trying to permanently switch off the balancer in HBase, as my reque= st >> distribution is not uniform across the data. >> >> I understand that this can be done by, setting balance_switch to false i= n >> hbase shell >> >> hbase(main):023:0> balance_switch false >> >> However, value of balance_switch is reset back to true.. every time I >> restart the HBase cluster (which cannot be avoided in my deployment >> scenario). >> >> So my question is : Is there a way to permanently/persistently disable t= he >> hbase balancer ? I could not find a property for this balance_switch. >> >> I though of one possible solution, which is to set 'hbase.balancer.perio= d' >> property to '-1'.. but it does not seems to work. >> >> Looking for suggestions. >> >> Thanks, >> Akshay=