Return-Path: Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: (qmail 43225 invoked from network); 15 Oct 2009 02:46:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Oct 2009 02:46:11 -0000 Received: (qmail 98841 invoked by uid 500); 15 Oct 2009 02:46:08 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 98757 invoked by uid 500); 15 Oct 2009 02:46:08 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 98747 invoked by uid 99); 15 Oct 2009 02:46:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 02:46:08 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of muntron@gmail.com designates 209.85.211.187 as permitted sender) Received: from [209.85.211.187] (HELO mail-yw0-f187.google.com) (209.85.211.187) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Oct 2009 02:46:00 +0000 Received: by ywh17 with SMTP id 17so447935ywh.2 for ; Wed, 14 Oct 2009 19:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=1loNMz59bfDa40A2OGC+cTepZtcbYH4ld+84BjOBN0U=; b=mztSY8suWruVYgtIOPBKPbhKft4BtbSPxmSiB/LgFtkNwB4Nfm7AWJ1urIip3NpZnx oHkMVOppht0q1WaOIqKv2dgYZ9A1leiuPOWSkumKlna3LpQBqnyitaJBSzIuFlPeOMtl j27gd09XYomkHO0SeCTGiDVgwzbNcEUsseDuc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=HfgLfgER+CmHw7cWrQB/jf4YAvH8ao2JD4gYJYsJePKUF9gt/k7ipso1uiA2c/GrBb 27gDKH2qyqTDdZ8tbvSLmS9qg6lS+U29ob5LbUYfMS0tO1KgtiEBV+n025YYI+ep7lzl nVQ1aQTKepAUv593DjVcvP20Hr51w4GKRS/ZY= MIME-Version: 1.0 Received: by 10.101.96.18 with SMTP id y18mr8057461anl.174.1255574739692; Wed, 14 Oct 2009 19:45:39 -0700 (PDT) In-Reply-To: References: Date: Wed, 14 Oct 2009 21:45:39 -0500 Message-ID: Subject: Re: How to get IP address of the machine where map task runs From: Long Van Nguyen Dinh To: common-user@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Thanks Amogh. For my application, I want each map task reports to me where it's running. However, I have no idea how to use Java Inetaddress APIs to get that info. Could you explain more? Van On Wed, Oct 14, 2009 at 2:16 PM, Amogh Vasekar wrote: > For starters look at any monitoring tool like vaidya, hadoop UI ( ganglia= too, haven't read much on it though ). Not sure if you need this for debug= ging purposes or for some other real-time app.. You should be able to get i= nfo on localhost of each of your map tasks in a pretty straightforward way = using Java Inetaddress APIs( and use that info for search?) > > Thanks, > Amogh > > > On 10/15/09 12:11 AM, "Long Van Nguyen Dinh" wrote: > > Hello again, > > Could you give me any hint to start with? I have no idea how to get > that information. > > Many thanks, > Van > > On Tue, Oct 13, 2009 at 9:22 PM, Long Van Nguyen Dinh = wrote: >> Hi all, >> >> Given a map task, I need to know the IP address of the machine where >> that task is running. Is there any existing method to get that >> information? >> >> Thank you, >> Van >> > >