hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: getting start and stop key
Date Tue, 06 Jun 2017 10:20:37 GMT
Looks like your table has only one region. 

> On Jun 6, 2017, at 3:14 AM, Rajeshkumar J <rajeshkumarit8292@gmail.com> wrote:
> 
> I am getting start rowkey as empty and stop rowkey as empty. Is this
> possible?
> 
> On Mon, Jun 5, 2017 at 11:19 PM, Ankit Singhal <ankitsinghal59@gmail.com>
> wrote:
> 
>> Hi RajeshKumar,
>> 
>> you can try this.(InputSplit class may vary depending upon the InputFormat
>> you are using,  below example is for TableInputFormat)
>> TableSplit tableSplit = (TableSplit)context.getInputSplit();
>> byte[] startRow=tableSplit.getStartRow()
>> byte[] endRow=tableSplit.getEndRow()
>> 
>> Regards,
>> Ankit Singhal
>> 
>> On Mon, Jun 5, 2017 at 5:38 AM, 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
>>> 
>> 

Mime
View raw message