Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB38F99DA for ; Mon, 9 Jan 2012 22:34:14 +0000 (UTC) Received: (qmail 35111 invoked by uid 500); 9 Jan 2012 22:34:13 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 35043 invoked by uid 500); 9 Jan 2012 22:34:12 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 35035 invoked by uid 99); 9 Jan 2012 22:34:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2012 22:34:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of christopher.dorner@gmail.com designates 74.125.83.41 as permitted sender) Received: from [74.125.83.41] (HELO mail-ee0-f41.google.com) (74.125.83.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2012 22:34:03 +0000 Received: by eekc41 with SMTP id c41so2932894eek.14 for ; Mon, 09 Jan 2012 14:33:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=vOzJA970zwRs4/69HZxIrWarq/3HALSnh+rIaVDsA5Q=; b=rzZu6LjklSSkk1+jxnF00jeCErWa1qOouB8X1BDvZh9zke1t30v01gblMyczR9e9yx bV4o6Bkcpt1qqBCYiRW7bx2w6KH7CJ3yhrZGGY1FO8/UFWIV3O1q2DtmG+SJOP4Dj8Xb nQUwD5KlV6xoQ+BqSxMRvlw6wmmqWJ0FhAyQk= Received: by 10.213.15.209 with SMTP id l17mr116385eba.11.1326148423126; Mon, 09 Jan 2012 14:33:43 -0800 (PST) Received: from [192.168.0.12] (89-75-49-236.dynamic.chello.pl. [89.75.49.236]) by mx.google.com with ESMTPS id t59sm296246880eeh.10.2012.01.09.14.33.41 (version=SSLv3 cipher=OTHER); Mon, 09 Jan 2012 14:33:42 -0800 (PST) Message-ID: <4F0B6B45.1050305@gmail.com> Date: Mon, 09 Jan 2012 23:33:41 +0100 From: Christopher Dorner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0 MIME-Version: 1.0 To: user@hbase.apache.org Subject: Re: information, whether a GET Request inside Map-Task is data local or not References: <4F0B59C5.2060400@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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. Christopher 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 > 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