[
https://issues.apache.org/jira/browse/HDFS-9495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15035334#comment-15035334
]
J.Andreina commented on HDFS-9495:
----------------------------------
Currently in DatanodeHttpServer, we are passing the port as 0 (which means
random port ) for endpoint that HTTP server would listen to.
{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}
We can make it configurable and provide a default port instead of taking up a
random.
Please provide your feedback.
> Data node opens random port for HTTPServer, not configurable
> ------------------------------------------------------------
>
> Key: HDFS-9495
> URL: https://issues.apache.org/jira/browse/HDFS-9495
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: neha
>
> Data node opens random port for HTTP Server which is not configurable
> currently. Better to make it configurable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)