Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5305 Add https support in HDFS
  3. HDFS-5312

Generate HTTP / HTTPS URL in DFSUtil#getInfoServer() based on the configured http policy

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.0
    • None
    • None
    • Reviewed

    Description

      DFSUtil#getInfoServer() returns only the authority (i.e., host+port) when searching for the http / https server. This is insufficient because HDFS-5536 and related jiras allows NN / DN / JN to open HTTPS only using the HTTPS_ONLY policy.

      This JIRA addresses two issues. First, DFSUtil#getInfoServer() should return an URI instead of a string, so that the scheme is an inherent parts of the return value, which eliminates the task of figuring out the scheme by design. Second, it introduces a new function to choose whether http or https should be used to connect to the remote server based of dfs.http.policy.

      Attachments

        1. HDFS-5312.008.patch
          44 kB
          Haohui Mai
        2. HDFS-5312.007.patch
          43 kB
          Haohui Mai
        3. HDFS-5312.006.patch
          43 kB
          Haohui Mai
        4. HDFS-5312.005.patch
          41 kB
          Haohui Mai
        5. HDFS-5312.004.patch
          36 kB
          Haohui Mai
        6. HDFS-5312.003.patch
          35 kB
          Haohui Mai
        7. HDFS-5312.002.patch
          35 kB
          Haohui Mai
        8. HDFS-5312.001.patch
          35 kB
          Haohui Mai
        9. HDFS-5312.000.patch
          35 kB
          Haohui Mai

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: