hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gokul Balakrishnan <royal...@gmail.com>
Subject Re: getting start and stop key
Date Wed, 07 Jun 2017 06:49:53 GMT
An alternative way that I've used in the past to determine the region
boundaries using the Connection is as follows:

RegionLocator locator =
final Pair<byte[][], byte[][]> startEndKeys = locator.getStartEndKeys();
byte[][] startKeys = startEndKeys.getFirst();
byte[][] endKeys = startEndKeys.getSecond();

On 5 June 2017 at 18:08, Rajeshkumar J <rajeshkumarit8292@gmail.com> wrote:

> Hi,
> I am running mapreduce over hbase table using java and I want to know which
> is the startkey and stopkey for every region. As every mapper takes a
> region as input I need to know the startkey and stopkey of a region in the
> map function. Is there any function to get that or is there any way to
> achieve this
> Thanks

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