Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9049

Make Datanode Netty reverse proxy port to be configurable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0, 2.10.0, 2.9.1, 3.0.1, 2.8.4
    • datanode
    • None
    • Reviewed

    Description

      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.

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

      Attachments

        1. HDFS-9049-01.patch
          3 kB
          Vinayakumar B
        2. HDFS-9049-02.patch
          4 kB
          Vinayakumar B
        3. HDFS-9049-03.patch
          4 kB
          Vinayakumar B
        4. HDFS-9049-04.patch
          4 kB
          Vinayakumar B

        Issue Links

          Activity

            People

              vinayakumarb Vinayakumar B
              vinayakumarb Vinayakumar B
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: