You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "J.Andreina (JIRA)" <ji...@apache.org> on 2015/12/02 07:05:11 UTC

[jira] [Commented] (HDFS-9495) Data node opens random port for HTTPServer, not configurable

    [ 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)