[ 
https://issues.apache.org/jira/browse/HBASE-14594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14957860#comment-14957860
 ] 

Josh Elser commented on HBASE-14594:
------------------------------------

bq.  Mind preparing patch for 0.98 - there are several rejected hunks ?

Not a problem, Ted! I'll give the other branches a look too. It's possible that 
some of the intermediate branches had usages of {{DNS.getDefaultHost}} that 
master no longer has. Will get to this tonight.

> Use new DNS API introduced in HADOOP-12437
> ------------------------------------------
>
>                 Key: HBASE-14594
>                 URL: https://issues.apache.org/jira/browse/HBASE-14594
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>             Fix For: 2.0.0, 1.2.0, 1.3.0, 1.1.3, 0.98.16
>
>         Attachments: HBASE-14594.001.patch, HBASE-14594.002.patch
>
>
> HADOOP-12437 introduced a new API to {{org.apache.hadoop.net.DNS}}: 
> {{getDefaultHost(String, String, boolean)}}.
> The purpose of this method (the boolean argument really) is to change the 
> functionality so that when rDNS fails, {{InetAddress#getCanonicalHostName()}} 
> is consulted which includes resolution via the hosts file.
> The direct application of this new method is relevant on hosts with multiples 
> NICs and Kerberos enabled.
> Sadly, this method only exists in 2.8.0-SNAPSHOT, so to benefit from the fix 
> without great pain, some reflection is required.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to