Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21232

Determination of defaultFS with WebHDFS enabled

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 2.4.0
    • 3.0.0
    • ambari-views
    • None
    • Patch

    Description

      In Ambari View Utils , the determination logic for the value of defaultFS when WebHDFS is enabled, needs to consider the current property value of defaultFS. Please see attached patch for the context.

      If the existing configuration for the defaultFS URI already has the protocol specified as webhdfs or swebhdfs, the URI should be used as provided and a new value should not be constructed. Constructing a new value in a such a scenario may lead to unexpected behavior if the Namenode has different host-port settings for the HTTP and WebHDFS access.

      The patch also addresses the following code cleanup:
      1) Fix variable names httpAddr and httpsAddr (current implementation has the naming interchanged)
      2) Add null value check for httpAddr before assignment to hostWithPort
      3) Fix typo in variable names - DFS_NAMENODE_HTTP_ADDRESS and DFS_NAMENODE_HTTPS_ADDRESS

      Attachments

        1. Patch_AmbariViewUtils_WebHDFS.txt
          2 kB
          Sridhar Sailappan

        Activity

          People

            mradhakrishnan Madhuvanthi Radhakrishnan
            sridharbluetalon Sridhar Sailappan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: