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

webhdfs should not try connecting the DN during redirection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • namenode, webhdfs
    • None
    • Reviewed

    Description

      When the webhdfs server in NN serves an OPEN request, the NN will eventually redirect the request to a DN. The current implementation intends to choose the active DNs. The code always connects to the DN in a deterministic order to see whether it is active during redirection.

      Although it reduces the chance of the client from connecting to a failed DN, this is problematic because:

      1. It has no guarantees that the client can connect to that DN even if the NN can connect to it.
      2. It requires an additional network round-trip for every OPEN / CREATE request.

      This jira proposes that the NN should choose the DN based on the information of the data node manager.

      Attachments

        1. HDFS-5891.000.patch
          12 kB
          Haohui Mai
        2. HDFS-5891.001.patch
          12 kB
          Haohui Mai

        Issue Links

          Activity

            People

              wheat9 Haohui Mai
              wheat9 Haohui Mai
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: