An alternative way that I've used in the past to determine the region
boundaries using the Connection is as follows:
RegionLocator locator =
connection.getRegionLocator(TableName.valueOf("your-table-name"));
final Pair<byte[][], byte[][]> startEndKeys = locator.getStartEndKeys();
byte[][] startKeys = startEndKeys.getFirst();
byte[][] endKeys = startEndKeys.getSecond();
On 5 June 2017 at 18:08, Rajeshkumar J <[email protected]> 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
>