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

Jing Zhao commented on HDFS-5055:
---------------------------------

{code}
String machine = imageListenAddress.getAddress().isAnyLocalAddress() ? 
     null : imageListenAddress.getHostName();
{code}

Looks like here if the http address in the configuration is wrong, the 
UnknownHostException will cause "imageListenAddress.getAddress()" to return 
null. We thus may need to add an extra check here.

Other than that +1 for the patch.
                
> nn->2nn ignores dfs.namenode.secondary.http-address
> ---------------------------------------------------
>
>                 Key: HDFS-5055
>                 URL: https://issues.apache.org/jira/browse/HDFS-5055
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.1.0-beta
>            Reporter: Allen Wittenauer
>            Assignee: Vinay
>            Priority: Blocker
>              Labels: regression
>         Attachments: HDFS-5055.patch, HDFS-5055.patch
>
>
> The primary namenode attempts to connect back to (incoming hostname):port 
> regardless of how dfs.namenode.secondary.http-address is configured.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to