hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Dorner <christopher.dor...@gmail.com>
Subject Re: information, whether a GET Request inside Map-Task is data local or not
Date Mon, 09 Jan 2012 22:33:41 GMT
Thank you for the reply.
Though that sounds a bit like some dirty hacking, it seems to be doable. 
I think i will give it a try.
I can report back when i get some usable results. Maybe some more people 
are interested in that.


Am 09.01.2012 23:15, schrieb Jean-Daniel Cryans:
> Short answer: no.
> Painful way to get around the problem:
> You *could* by looking up the machines hostname when the job starts
> and then from the HConnection that HTables can give you through
> getConnection() do getRegionLocation for the row you are going to Get
> and then get the hostname by getServerAddress().getHostname()
> J-D
> On Mon, Jan 9, 2012 at 1:19 PM, Christopher Dorner
> <christopher.dorner@gmail.com>  wrote:
>> Hi,
>> i am using the input of a mapper as a rowkey to make a GET Request to a
>> table.
>> Is it somehow possible to retrieve information about how much data had to be
>> transferred over network or how many of the requests were data local
>> (namenodes are also regionservers) or where the request was not on the same
>> node?
>> That would be some really cool and useful statistics for us :)
>> Thank you,
>> Christopher Dorner

View raw message