Thanks, Stack.

The context is that we have a script, find_overlapping_regions.rb at:
https://github.com/Mendeley/hbase-scripts/blob/master/find_overlapping_regions.rb

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.

Regards,

James

On Wed, Jun 8, 2011 at 5:27 PM, Stack <[email protected]> wrote:

> On Wed, Jun 8, 2011 at 9:22 AM, James Hammerton
> <[email protected]> wrote:
> > Given the tableName, startKey and endKey for a region how do I get hold
> of
> > the encodedName?
> >
>
> I suppose it depends on the context.
>
> If reading .META., then if you deserialize the info:regioninfo into an
> HRegionInfo instance, then you can get encoded name by doing
> HRI#getEncodedName.  See bin/check_meta.rb for example.
>
> Let me know if your context is otherwise and we'll try figure something
> out.
>
> 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

Reply via email to