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 the midkey of a region?
Date Fri, 23 Sep 2011 16:26:59 GMT
On Fri, Sep 23, 2011 at 2:22 AM, Sheng Chen <chensheng2010@gmail.com> wrote:
> I want to manually split a region into 2 parts of the same size.
> The row key of the regions is based on user-id, which is not distributed
> uniformly.
> I see that in the default split method, the midkey is returned after a
> compaction.
> Can I get the midkey efficiently without compact it?
>

There is no API to do this exposed to the client.  You'd have to go
behind API and access the files in the filesystem directly; see
http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/io/hfile/HFile.Reader.html

St.Ack

Mime
View raw message