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

Make Datanode Netty reverse proxy port to be configurable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0, 2.10.0, 2.9.1, 3.0.1, 2.8.4
    • Component/s: datanode
    • Labels:
      None
    • Hadoop Flags:
      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-04.patch
          4 kB
          Vinayakumar B
        2. HDFS-9049-03.patch
          4 kB
          Vinayakumar B
        3. HDFS-9049-02.patch
          4 kB
          Vinayakumar B
        4. HDFS-9049-01.patch
          3 kB
          Vinayakumar B

          Issue Links

            Activity

              People

              • Assignee:
                vinayrpet Vinayakumar B
                Reporter:
                vinayrpet Vinayakumar B
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: