[
https://issues.apache.org/jira/browse/HDFS-9049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14804932#comment-14804932
]
Vinayakumar B commented on HDFS-9049:
-------------------------------------
In some of the deployments, customers want to have the control over all
listening ports.
So that they logically separates server/listening ports from client ports. For
this they prefer no random ports to be allocated for listening.
Therefore making user to be able to configure all listening ports, even though
its listening on localhost, would make this possible.
Hope this answers.
> Make Datanode Netty reverse proxy port to be configurable
> ---------------------------------------------------------
>
> Key: HDFS-9049
> URL: https://issues.apache.org/jira/browse/HDFS-9049
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: datanode
> Reporter: Vinayakumar B
> Assignee: Vinayakumar B
>
> In DatanodeHttpServer.java Netty is used as reverse proxy. But uses random
> port to start with binding to localhost. This port can be made configurable
> for better deployments.
> {code}
> HttpServer2.Builder builder = new HttpServer2.Builder()
> .setName("datanode")
> .setConf(confForInfoServer)
> .setACL(new AccessControlList(conf.get(DFS_ADMIN, " ")))
> .hostName(getHostnameForSpnegoPrincipal(confForInfoServer))
> .addEndpoint(URI.create("http://localhost:0"))
> .setFindPort(true);
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)