You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Doug Cutting (JIRA)" <ji...@apache.org> on 2006/02/24 00:00:39 UTC

[jira] Commented: (HADOOP-8) NDFS DataNode advertises localhost as it's address

    [ http://issues.apache.org/jira/browse/HADOOP-8?page=comments#action_12367595 ] 

Doug Cutting commented on HADOOP-8:
-----------------------------------

The problem with this fix is that, if the namenode is down, the socket creation fails and we fail to launch a datanode.  So it would be great to have a better method than InetAddress.getLocalHost(), that tries harder to return the appropriate IP to advertise to the namenode, but that doesn't require the namenode to be up.

Perhaps this could use NetworkInterfaces.getInetAddresses() and find the first that is not a loopback interface?

> NDFS DataNode advertises localhost as it's address
> --------------------------------------------------
>
>          Key: HADOOP-8
>          URL: http://issues.apache.org/jira/browse/HADOOP-8
>      Project: Hadoop
>         Type: Bug
>   Components: dfs
>  Environment: Linux
>     Reporter: Peter Sandström
>  Attachments: ndfs-datanode-fix.patch
>


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira