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 C4B077999 for ; Wed, 23 Nov 2011 17:15:05 +0000 (UTC) Received: (qmail 22832 invoked by uid 500); 23 Nov 2011 17:15:04 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 22797 invoked by uid 500); 23 Nov 2011 17:15:04 -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 22789 invoked by uid 99); 23 Nov 2011 17:15:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 17:15:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kisalay@gmail.com designates 209.85.161.169 as permitted sender) Received: from [209.85.161.169] (HELO mail-gx0-f169.google.com) (209.85.161.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 17:14:57 +0000 Received: by ggnq1 with SMTP id q1so2163941ggn.14 for ; Wed, 23 Nov 2011 09:14:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=GW5jxOVyTu/hqm8qSjWa5N8s36uPYJRmnk+ynm9PiFg=; b=FwkfmxW6uPbwJH244VHirhLRu2zX8isFA5qyugKUoaXw0mGElR99ccWeCkhWd+eIXk YXk9mKiV+FPfzAEZEDhzSZUWr5pbiwk3TVQFpa4xflPVh6Z6jjbYtGh42DqJQgGCrs7H e5uEjAOjUCnZQLmacOFQXElU3pesNAJaEq05M= MIME-Version: 1.0 Received: by 10.236.174.3 with SMTP id w3mr35614223yhl.117.1322068476510; Wed, 23 Nov 2011 09:14:36 -0800 (PST) Received: by 10.146.250.8 with HTTP; Wed, 23 Nov 2011 09:14:36 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Nov 2011 22:44:36 +0530 Message-ID: Subject: Re: Help for Online Merge From: kisalay To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=20cf30563c35e942a804b26a0d7b X-Virus-Checked: Checked by ClamAV on apache.org --20cf30563c35e942a804b26a0d7b Content-Type: text/plain; charset=ISO-8859-1 Thanks Stack.. will be trying this out. I had one more question: What are the scenarios under which I can get null regioninfo. Can it be attributed to manual maintenance tasks like major-compact or offline merge ? If I want to do a online periodic merge of all my empty regions inoder to keep the number of regions under control, shud I also, always look for these regions with null-region info and delete them from META periodically ? On Wed, Nov 23, 2011 at 10:01 PM, Stack wrote: > On Wed, Nov 23, 2011 at 4:39 AM, kisalay wrote: > > This query is regarding the online_merge script from > > https://issues.apache.org/jira/browse/HBASE-1621 > > > > My setup is hbase - cdh3u1, hadoop-cdh3-u0. > > > > When I am running this script, I encounter the problem at the following > > line: > > > > info = > > > Writables.getHRegionInfo(result.getValue(HConstants::CATALOG_FAMILY,HConstants::REGIONINFO_QUALIFIER)) > > > > The > result.getValue(HConstants::CATALOG_FAMILY,HConstants::REGIONINFO_QUALIFIER) > > returns a null and Writable.getHRegionInfo throws a > null-pointer-exception. > > > > I am wondering in what cases can I get null returned > > from > result.getValue(HConstants::CATALOG_FAMILY,HConstants::REGIONINFO_QUALIFIER) > > ? > > Change the script to use > > http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/util/Writables.html#getHRegionInfoOrNull(byte[]) > instead. If it returns null, continue rather than proceed. Or clean > out these rows with null regioninfo before running the script by > deleting them from .META. You should see a list of what to delete if > you look in your master log. It should have complaint about rows with > empty info:regioninfos. > > St.Ack > --20cf30563c35e942a804b26a0d7b--