Issue Details (XML | Word | Printable)

Key: HADOOP-497
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Lorenzo Thione
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers

Created: 31/Aug/06 02:31 AM   Updated: 08/Jul/09 04:51 PM
Return to search
Component/s: util
Affects Version/s: 0.6.0
Fix Version/s: 0.6.0

Time Tracking:
Not Specified

File Attachments:
  Size
Java Archive File dnsjava-2.0.2.jar 2006-08-31 02:31 AM Lorenzo Thione 261 kB
Text File Licensed for inclusion in ASF works net-dns.patch 2006-09-06 11:24 PM Lorenzo Thione 12 kB
Text File Licensed for inclusion in ASF works net-dns.patch 2006-09-01 07:28 AM Lorenzo Thione 11 kB
Text File nif-utils.patch 2006-08-31 02:31 AM Lorenzo Thione 9 kB

Resolution Date: 07/Sep/06 08:00 PM


 Description  « Hide
This patch allows for network configuration parameters to be aded to the hadoop-site.xml file. These parameters specify a network interface name and an optional nameserver hostname which DataNodes and TaskTrackers consult to resolve their hostnames from the IP bound to the specified network interface.

This is useful when machines that are part of different physical or logical network need to participate in hadoop clusters as client nodes. The hostname and IP reported by InetAddress.getLocalHost() are not necessarily the ones that will allow the JobTracker and NameNode to reach the clients, as well as not necessarily the ones through which the DFS clients can reach the DataNodes.

The configuration parameters are

  • cluster.report.nif
  • cluster.report.ns

nif: takes the name of a network interface, like en0, en1 (on macs), eth0, etc...
ns: the host name of a DNS server to use when resolving the IP bound to the specified nif

These parameters are set by default to the value "default" which will replicate the current behavior of reporting InetAddress.getLocalHost().getHostName() and getHostAddress()

As part of the patch, a new library dnsjava was added along with its license information (BSD license). The list of affected files is:

src
org.apache.hadoop.dfs.DataNode
org.apache.hadoop.mapred.taskTracker
org.apache.hadoop.util.NetworkUtils
conf
hadoop-default.xml
lib
dnsjava-2.0.2.jar
dnsjava-2.0.2.LICENSE.txt



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.