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 3F21FF378 for ; Mon, 8 Apr 2013 00:36:27 +0000 (UTC) Received: (qmail 71744 invoked by uid 500); 8 Apr 2013 00:36:25 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 71686 invoked by uid 500); 8 Apr 2013 00:36:25 -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 71677 invoked by uid 99); 8 Apr 2013 00:36:25 -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 00:36:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.128.177] (HELO mail-ve0-f177.google.com) (209.85.128.177) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Apr 2013 00:36:19 +0000 Received: by mail-ve0-f177.google.com with SMTP id jw11so4939423veb.36 for ; Sun, 07 Apr 2013 17:35:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=StMjCxqjJH8OfTLonrFN1uxAFVM9FE+Xezg/PMRdD/o=; b=Bemm2IdCP0vi6UbSVCXyKezuukCpTZGKpRV3IFlb0eKPArxisE7tPqqyi76yw27eRO S6YVTIv0VdjUuIrQYQVFnB489JwYRlw1sf7s8EQMPE+tgwhtPy7R68+HR++RtA5CncMm qhEA7xtCNd5eDlgREgvm3t1hG/pGdwV6Ie2L70fIkpRLyxJ2YXpCPyy38GLq93licgBB ZL2xtjvplDkl/oBtAMPaGb4wjsT9JBz8oi/uEnmbpha9uWTxOsPJsDpK/AbV9Knc1kMM En3xVaG4r/ypZsjt1c0XITXarpUbfXuypenHkQbfvgnTmcCM+obdgiSueTxYJSqrdyFx 5k9A== X-Received: by 10.220.203.130 with SMTP id fi2mr14160728vcb.52.1365381358668; Sun, 07 Apr 2013 17:35:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.17.77 with HTTP; Sun, 7 Apr 2013 17:35:37 -0700 (PDT) In-Reply-To: References: <1365372866.95990.YahooMailNeo@web194002.mail.sg3.yahoo.com> From: Jean-Marc Spaggiari Date: Sun, 7 Apr 2013 20:35:37 -0400 Message-ID: Subject: Re: Disabling balancer permanently in HBase To: user@hbase.apache.org Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnGeyzSqTZWeo6XbGbEKkkHl7s0itWFP7ivONC7uHqAOZjLkVmxQviYNIkHUjnMyDYtA2r9 X-Virus-Checked: Checked by ClamAV on apache.org 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 wrote: > >> Hi, >> >> I am trying to permanently switch off the balancer in HBase, as my request >> distribution is not uniform across the data. >> >> I understand that this can be done by, setting balance_switch to false in >> 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 the >> hbase balancer ? I could not find a property for this balance_switch. >> >> I though of one possible solution, which is to set 'hbase.balancer.period' >> property to '-1'.. but it does not seems to work. >> >> Looking for suggestions. >> >> Thanks, >> Akshay