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.hammer...@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 <st...@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 >