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 "Lorenzo Thione (JIRA)" <ji...@apache.org> on 2006/08/31 04:33:22 UTC
[jira] Created: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
---------------------------------------------------------------------------------------------------------------------------------
Key: HADOOP-497
URL: http://issues.apache.org/jira/browse/HADOOP-497
Project: Hadoop
Issue Type: New Feature
Components: dfs, mapred, util
Affects Versions: 0.6.0
Reporter: Lorenzo Thione
Priority: Minor
Attachments: dnsjava-2.0.2.jar, nif-utils.patch
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
--
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
[jira] Commented: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=comments#action_12431926 ]
Doug Cutting commented on HADOOP-497:
-------------------------------------
I'm not sure why you need the dnsjava library. At a glance, it seems you could instead set sun.net.spi.nameservice.nameservers and then use the java.net.NetworkInterface to find which hostnames correspond to a particular interface. Why doesn't that work?
A few nits with the code:
- It should probably be named net/DNS.java, insead of util/NetworkUtils.java. The util package is already a mess.
- The descriptions of the new config properties only mention tasktracker and jobtracker, but the options are also valid for datanode and namenode. I would also name these properties something like net.dns.interface and net.interface.nameserver.
- The new class and all its public members should have informative javadoc comments. if we add a new package, it should have a package.html with at least a one-line description of the package.
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: mapred, dfs, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Attachments: dnsjava-2.0.2.jar, nif-utils.patch
>
>
> 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
--
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
[jira] Resolved: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=all ]
Doug Cutting resolved HADOOP-497.
---------------------------------
Fix Version/s: 0.6.0
Resolution: Fixed
I just committed this. The patch had some spurious changes to imports, and indented four spaces-per-level rather than two. I also moved some duplicated code into the DNS utility class. Thanks, Lorenzo!
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: mapred, dfs, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Fix For: 0.6.0
>
> Attachments: dnsjava-2.0.2.jar, net-dns.patch, net-dns.patch, nif-utils.patch
>
>
> 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
--
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
[jira] Updated: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Lorenzo Thione (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=all ]
Lorenzo Thione updated HADOOP-497:
----------------------------------
Attachment: net-dns.patch
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: mapred, dfs, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Attachments: dnsjava-2.0.2.jar, net-dns.patch, net-dns.patch, nif-utils.patch
>
>
> 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
--
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
[jira] Commented: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Lorenzo Thione (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=comments#action_12432996 ]
Lorenzo Thione commented on HADOOP-497:
---------------------------------------
Here's a new patch, with reformatted column-size and new names for properties.
mapred.tasktracker.dns.interface
mapred.tasktracker.dns.nameserver
dfs.datanode.dns.interface
dfs.datanode.dns.nameserver
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: mapred, dfs, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Attachments: dnsjava-2.0.2.jar, net-dns.patch, net-dns.patch, nif-utils.patch
>
>
> 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
--
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
[jira] Commented: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=comments#action_12432906 ]
Doug Cutting commented on HADOOP-497:
-------------------------------------
Okay, then, yes, let's rename these to be mapred.* config parameters.
Also, lots of the lines are longer than 80 columns. Can you please re-format those?
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: dfs, mapred, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Attachments: dnsjava-2.0.2.jar, net-dns.patch, nif-utils.patch
>
>
> 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
--
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
[jira] Updated: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Lorenzo Thione (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=all ]
Lorenzo Thione updated HADOOP-497:
----------------------------------
Attachment: net-dns.patch
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: mapred, dfs, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Attachments: dnsjava-2.0.2.jar, net-dns.patch, nif-utils.patch
>
>
> 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
--
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
[jira] Commented: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Doug Cutting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=comments#action_12432643 ]
Doug Cutting commented on HADOOP-497:
-------------------------------------
Do we really think we'll want to configure these separately for the tasktracker and datanode? If so, then these properties should probably be named something like mapred.tasktracker.dns.interface, and grouped with mapred & dfs options.
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: dfs, mapred, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Attachments: dnsjava-2.0.2.jar, net-dns.patch, nif-utils.patch
>
>
> 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
--
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
[jira] Commented: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Lorenzo Thione (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=comments#action_12432773 ]
Lorenzo Thione commented on HADOOP-497:
---------------------------------------
For us there were real reasons why this was necessary. The NameNode (which cares about the host names for the DataNodes) and the JobTracker (which cares about the hostnames of the TaskTrackers) are on different networks. It seems that configuring these independently gives the right level of flexibility. Any reason why we'd want to keep them necessarily aligned? I'd be fine with changing the names of the properties.
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: dfs, mapred, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Attachments: dnsjava-2.0.2.jar, net-dns.patch, nif-utils.patch
>
>
> 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
--
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
[jira] Commented: (HADOOP-497) DataNodes and TaskTrackers should be
able to report hostnames and ips relative to customizable network
interfaces and nameservers
Posted by "Lorenzo Thione (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HADOOP-497?page=comments#action_12432081 ]
Lorenzo Thione commented on HADOOP-497:
---------------------------------------
Just setting sun.net.spi.nameservice.nameservers worked for direct lookup but not for reverse lookup, at least when I first looked at it. This new patch does the job without using an external library, just using JNDI directly to query the DNS server. The new class has a new name (DNS.java) , and a new location (net) . A new package.html file was created as well. Finally, now network interface and nameserver are independently configurable for datanodes and tasktrackers. The names of the new properties have been changed to
net.dns.datanode.interface
net.dns.tasktracker.interface
net.dns.datanode.nameserver
net.dns.tasktracker.nameserver
> DataNodes and TaskTrackers should be able to report hostnames and ips relative to customizable network interfaces and nameservers
> ---------------------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-497
> URL: http://issues.apache.org/jira/browse/HADOOP-497
> Project: Hadoop
> Issue Type: New Feature
> Components: mapred, dfs, util
> Affects Versions: 0.6.0
> Reporter: Lorenzo Thione
> Priority: Minor
> Attachments: dnsjava-2.0.2.jar, net-dns.patch, nif-utils.patch
>
>
> 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
--
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