hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Hammerton <james.hammer...@mendeley.com>
Subject Re: How to find encoded name for a region?
Date Wed, 08 Jun 2011 17:10:51 GMT
Scratch that. You mean alter the find_overlapping_regions script to use
.META. to find the overlapping regions don't you?

James

On Wed, Jun 8, 2011 at 6:01 PM, James Hammerton <
james.hammerton@mendeley.com> wrote:

> Thanks Stack,
>
> I take it you mean get hold of check_meta.rb from a recent version and
> alter it to find the HRIs?
>
> Regards,
>
> James
>
>
> On Wed, Jun 8, 2011 at 5:55 PM, Stack <stack@duboce.net> wrote:
>
>> Pull it in.  You'll have to massage a little but rather than do the
>> indirect HTable.getStartKeys (which turns around and reads meta), read
>> .META. directly and get the HRIs yourself.
>>
>> St.Ack
>>
>> On Wed, Jun 8, 2011 at 9:51 AM, James Hammerton
>> <james.hammerton@mendeley.com> wrote:
>> > Hi,
>> >
>> > I've checked /usr/lib/hbase/bin and it doesn't have check_meta.rb.
>> >
>> > Also, HTable doesn't have getHRegionInfos in 0.20.6.
>> >
>> > Regards,
>> >
>> > James
>> >
>> > On Wed, Jun 8, 2011 at 5:46 PM, Stack <stack@duboce.net> wrote:
>> >
>> >> Do you have check_meta.rb in 0.20.6 (I don't remember?  I think you
>> >> do).  Start with that?
>> >>
>> >> Otherwise, here:
>> >>
>> >> keys = wanted_table.getStartEndKeys
>> >>
>> >> In 0.20.6 can you get HRegionInfos instead of start keys?  That'd be
>> >> more useful.  They would have the encoded name.
>> >>
>> >>
>> >> > We'd ideally like to feed the results into another script (to be
>> written)
>> >> > that will call org.apache.hbase.util.Merge. I've been looking at the
>> >> source
>> >> > code for the Merge command to figure out that it needs the name of
>> the
>> >> > region to be sent in as "<tableName>,<startKey>,<encodedName>".
This
>> >> either
>> >> > means altering the script to output the encode name instead of the
>> end
>> >> key
>> >> > in the triples describing the region names or looking up the encoded
>> >> names
>> >> > from the triples in the merging script.
>> >> >
>> >>
>> >> Sure.  Sounds right.
>> >>
>> >> St.Ack
>> >>
>> >
>> >
>> >
>> > --
>> > James Hammerton | Senior Data Mining Engineer
>> > www.mendeley.com/profiles/james-hammerton
>> >
>> > Mendeley Limited | London, UK | www.mendeley.com
>> > Registered in England and Wales | Company Number 6419015
>> >
>>
>
>
>
> --
> James Hammerton | Senior Data Mining Engineer
> www.mendeley.com/profiles/james-hammerton
>
> Mendeley Limited | London, UK | www.mendeley.com
> Registered in England and Wales | Company Number 6419015
>
>
>
>


-- 
James Hammerton | Senior Data Mining Engineer
www.mendeley.com/profiles/james-hammerton

Mendeley Limited | London, UK | www.mendeley.com
Registered in England and Wales | Company Number 6419015

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message