hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: How to find encoded name for a region?
Date Wed, 08 Jun 2011 16:46:04 GMT
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
> 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.


View raw message