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

Vinayakumar B commented on HDFS-6273:
-------------------------------------

bq. Updated patch to remove a useless override from the BackupNode. I missed 
that in my v2 patch.
Seems like this is not useless. Its creating "port in use" errors in BackUpNode 
tests as both NN and BNN are trying to start in same HTTP ports.

{noformat}2014-04-24 00:07:14,659 INFO  http.HttpServer2 
(HttpServer2.java:start(797)) - HttpServer.start() threw a non Bind IOException
java.net.BindException: Port in use: asf009.sp2.ygridcore.net:51861
        at 
org.apache.hadoop.http.HttpServer2.openListeners(HttpServer2.java:858)
        at org.apache.hadoop.http.HttpServer2.start(HttpServer2.java:794)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNodeHttpServer.start(NameNodeHttpServer.java:142)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:633)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.startCommonServices(NameNode.java:562)
        at 
org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:545)
        at 
org.apache.hadoop.hdfs.server.namenode.BackupNode.initialize(BackupNode.java:142){noformat}

I feel, Its enough to change the method name {{getHttpServerAddress}} to 
{{getHttpServerBindAddress}} in BackupNode.java. No need of one more bind host 
configuration for BackupNode

> Option to allow wildcard endpoints for namenode HTTP and HTTPS servers
> ----------------------------------------------------------------------
>
>                 Key: HDFS-6273
>                 URL: https://issues.apache.org/jira/browse/HDFS-6273
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>    Affects Versions: 2.4.0
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>         Attachments: HDFS-6273.01.patch, HDFS-6273.02.patch, 
> HDFS-6273.03.patch
>
>
> The NameNode already has a couple of keys to allow the RPC and Service RPC 
> servers to bind the wildcard address (0.0.0.0) which is useful in multihomed 
> environments via:
> # {{dfs.namenode.rpc-bind-host}}
> # {{dfs.namenode.servicerpc-address}}
> This Jira is to add similar options for the HTTP and HTTPS endpoints.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to