FAQ
[ 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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedFeb 23, '06 at 11:01p
activeFeb 23, '06 at 11:01p
posts1
users1
websitehadoop.apache.org...
irc#hadoop

1 user in discussion

Doug Cutting (JIRA): 1 post

People

Translate

site design / logo © 2022 Grokbase