Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81ED7E8F4 for ; Thu, 27 Dec 2012 15:30:23 +0000 (UTC) Received: (qmail 4939 invoked by uid 500); 27 Dec 2012 15:30:18 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 4845 invoked by uid 500); 27 Dec 2012 15:30:18 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 4836 invoked by uid 99); 27 Dec 2012 15:30:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2012 15:30:18 +0000 X-ASF-Spam-Status: No, hits=0.4 required=5.0 tests=NO_RDNS_DOTCOM_HELO,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 216.145.54.172 is neither permitted nor denied by domain of evans@yahoo-inc.com) Received: from [216.145.54.172] (HELO mrout2.yahoo.com) (216.145.54.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2012 15:30:12 +0000 Received: from SP1-EX07CAS04.ds.corp.yahoo.com (sp1-ex07cas04.corp.sp1.yahoo.com [216.252.116.155]) by mrout2.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id qBRFTkZX038360 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=FAIL) for ; Thu, 27 Dec 2012 07:29:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1356622187; bh=N4FY2oNa91m18n0itfUULJ/Lg+mASNez3yGcUQ44S2I=; h=From:To:Date:Subject:Message-ID:In-Reply-To:Content-Type: Content-Transfer-Encoding:MIME-Version; b=hMhYilByQjRJdlVRe48fxAJAHOq2dbTLS+na6EZNZXNYoUuCPILKtRv3wq6whpCkx wMsX3QG6aR/OItc1VZhu9XsnYPRkOGc9iDznIA/C8KUsE7E76KW3wgm6jnG4MsP9tv eGOFbT6R3DTZ9t6R0VvisjB8T6OSiN5KDyQbwy1M= Received: from SP1-EX07VS02.ds.corp.yahoo.com ([216.252.116.135]) by SP1-EX07CAS04.ds.corp.yahoo.com ([216.252.116.158]) with mapi; Thu, 27 Dec 2012 07:29:46 -0800 From: Robert Evans To: "user@hadoop.apache.org" Date: Thu, 27 Dec 2012 07:29:40 -0800 Subject: Re: Retrieve node where a map task is running programmatically Thread-Topic: Retrieve node where a map task is running programmatically Thread-Index: Ac3kRv/HgYkK83TpScaNVhAyZAQhfg== Message-ID: In-Reply-To: <50DC6077.8080601@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.2.5.121010 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 622187000 X-Virus-Checked: Checked by ClamAV on apache.org You don't need Hadoop to do this. Just use an InetAddress. http://docs.oracle.com/javase/6/docs/api/java/net/InetAddress.html --Bobby On 12/27/12 8:51 AM, "Eduard Skaley" wrote: >Hi, > >is there a way to find out in the setup function of a mapper on which >node of the cluster the current mapper is running ? > >thank you very much, >Eduard