How to get IP address of the machine where map task runs

View: New views
3 Messages — Rating Filter:   Alert me  

How to get IP address of the machine where map task runs

by Long Van Nguyen Dinh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

Re: How to get IP address of the machine where map task runs

by Long Van Nguyen Dinh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 <muntron@...> 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
>

Re: How to get IP address of the machine where map task runs

by Amogh Vasekar-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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 debugging purposes or for some other real-time app.. You should be able to get info 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" <muntron@...> 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 <muntron@...> 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
>