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 CC18CD21E for ; Wed, 5 Sep 2012 08:40:40 +0000 (UTC) Received: (qmail 1198 invoked by uid 500); 5 Sep 2012 08:40:39 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 709 invoked by uid 500); 5 Sep 2012 08:40:33 -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 669 invoked by uid 99); 5 Sep 2012 08:40:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 08:40:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_FRT_PROFILE2 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ogdude@googlemail.com designates 209.85.220.169 as permitted sender) Received: from [209.85.220.169] (HELO mail-vc0-f169.google.com) (209.85.220.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Sep 2012 08:40:27 +0000 Received: by vcbfl13 with SMTP id fl13so448324vcb.14 for ; Wed, 05 Sep 2012 01:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=76mZybMO57MpvH+jBqrmAsFQKqtzsYf0+nsU/gjq1eQ=; b=AEX+kUYQSwIA74WbZh34wCSHGmy23rsERuevryw6ojgnzK80+2OvV1G34DE2cSoIz8 glG8pUOtQcZFGbuqXTKj4OHO/MhP4jlVyODLS3rx3g3ECum7BfJ/B7hUI5rTHmNwBaoo /3hHA+B7wd5y7NfjWMqg/BKWC9WdawEUItMRp4k2Y1Y+6VtjtCWHPtyWpjpG9u/Nm2Qp IeZ4HazraplzWjYFF6BwzCJVrsZ+zhhgF/gqSzerE916WKYV1MGgJnxdSDts1wgLopSX k7lUeMVGUqnk6iCaNJnCDSrQa+R7Lt4TyiIhVbE6ScX+c2Ggpjid2VC7+VSahA4dJzLI hKYA== MIME-Version: 1.0 Received: by 10.52.21.193 with SMTP id x1mr15204638vde.130.1346834406634; Wed, 05 Sep 2012 01:40:06 -0700 (PDT) Received: by 10.58.35.9 with HTTP; Wed, 5 Sep 2012 01:40:06 -0700 (PDT) In-Reply-To: References: <8D483A32-1CD0-4C9E-AAC9-F4FE215735B4@mendeley.com> Date: Wed, 5 Sep 2012 10:40:06 +0200 Message-ID: Subject: Re: Fixing badly distributed table manually. From: David Koch To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf3079b94260f66604c8f052ee X-Virus-Checked: Checked by ClamAV on apache.org --20cf3079b94260f66604c8f052ee Content-Type: text/plain; charset=ISO-8859-1 Hello, I also found this fairly recent script here which can be used with Gnuplot to get a visual representation of data distribution across nodes: http://bobcopeland.com/blog/2012/04/graphing-hbase-splits/ Again, my JRuby skills are non-existent so just blindly running the script versus HBase 0.92 results in a: NoMethodError: private method `load' called for # main at region_hist.rb:23 call at org/jruby/RubyProc.java:270 call at org/jruby/RubyProc.java:220 each at file:/usr/lib/hbase/lib/jruby-complete-1.6.5.jar!/builtin/java/java.util.rb:7 main at region_hist.rb:19 (root) at region_hist.rb:37 Maybe it has to do with the author's remark: [Note: I've been advised (thanks ntelford!) that HServerInfo is gone in newer releases and you now need to get HServerLoad via ClusterStatus.getLoad(server_name).] What are the changes that need to be made to the script to get it to run on HBase 0.92? Thank you, /David On Tue, Sep 4, 2012 at 11:42 PM, David Koch wrote: > Hello, > > Thank you for your replies. We are using CDH4 HBase 0.92. Good call on the > web interface. The port is blocked so I never really got a chance to test > it. As far as manual re-balancing is concerned I will check the book. > > /David > > > On Tue, Sep 4, 2012 at 5:34 PM, Guillaume Gardey < > guillaume.gardey@mendeley.com> wrote: > >> Hello, >> >> > a) What is the easiest way to get an overview of how a table is >> distributed >> > across regions of a cluster? I guess I could search .META. but I haven't >> > figured out how to use filters from shell. >> > b) What constitutes a "badly distributed" table and how can I re-balance >> > manually? >> > c) Is b) needed at all? I know that HBase does its balancing >> automatically >> > behind the scenes. >> >> I have found that >> http://bobcopeland.com/blog/2012/04/graphing-hbase-splits/ is a good >> source of information/tools to look at regions balancing in the cluster and >> investigate it. >> >> > As for a) I tried running this script: >> > >> > https://github.com/Mendeley/hbase-scripts/blob/master/list_regions.rb >> > >> > like so: >> > >> > hbase org.jruby.Main ./list_regions.rb <_my_table> >> > >> > but I get >> > >> > ArgumentError: wrong number of arguments (1 for 2) >> > (root) at ./list_regions.rb:60 >> > >> > If someone more proficient notices an obvious fix, I'd be glad to hear >> > about it. >> >> Concerning https://github.com/Mendeley/hbase-scripts , I am afraid that >> this is a repository that is no longer maintained and was written for old >> releases of hbase (cdh2 I believe). There's no plan to upgrade it to newer >> releases. >> >> Cheers >> --- >> Guillaume > > > --20cf3079b94260f66604c8f052ee--