[
https://issues.apache.org/jira/browse/HDFS-9049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16316067#comment-16316067
]
Brahma Reddy Battula commented on HDFS-9049:
--------------------------------------------
[~vinayrpet] thanks for reporting and working on this.As per
[RFC6056|https://tools.ietf.org/html/rfc6056],better to make it configurable
the port.
can we've confiuration like {{dfs.datanode.web.internal-proxy.port}} as it's
internal DN..?
> 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
> Attachments: HDFS-9049-01.patch, HDFS-9049-02.patch,
> HDFS-9049-03.patch
>
>
> 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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]