You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Eduard Skaley <e....@gmail.com> on 2012/12/27 15:51:35 UTC

Retrieve node where a map task is running programmatically

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

Re: Retrieve node where a map task is running programmatically

Posted by Robert Evans <ev...@yahoo-inc.com>.
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" <e....@gmail.com> 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


Re: Retrieve node where a map task is running programmatically

Posted by Robert Evans <ev...@yahoo-inc.com>.
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" <e....@gmail.com> 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


Re: Retrieve node where a map task is running programmatically

Posted by Robert Evans <ev...@yahoo-inc.com>.
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" <e....@gmail.com> 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


Re: Retrieve node where a map task is running programmatically

Posted by Robert Evans <ev...@yahoo-inc.com>.
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" <e....@gmail.com> 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