[
https://issues.apache.org/jira/browse/HDFS-9109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Arpit Agarwal updated HDFS-9109:
--------------------------------
Attachment: HDFS-9109.03.patch
v03 patch attached. This fix is hard to add a unit test without refactoring the
DNS class significantly since the dependencies on system DNS and IP address
lookup are all over the class and cannot be stubbed out for testing.
I started the refactor but that makes the patch larger (and riskier). I'd
rather keep this change minimal, and hopefully we can defer adding the unit
test.
> dfs.datanode.dns.interface does not work with hosts file based setups
> ---------------------------------------------------------------------
>
> Key: HDFS-9109
> URL: https://issues.apache.org/jira/browse/HDFS-9109
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: datanode
> Reporter: Arpit Agarwal
> Assignee: Arpit Agarwal
> Attachments: HDFS-9109.01.patch, HDFS-9109.02.patch,
> HDFS-9109.03.patch
>
>
> The configuration setting {{dfs.datanode.dns.interface}} lets the DataNode
> select its hostname by doing a reverse lookup of IP addresses on the specific
> network interface. This does not work {{when /etc/hosts}} is used to setup
> alternate hostnames, since {{DNS#reverseDns}} only queries the DNS servers.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)