hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: information, whether a GET Request inside Map-Task is data local or not
Date Mon, 09 Jan 2012 22:15:05 GMT
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

Mime
View raw message