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

Web UI: Browse file system from data node will fail with secured HDFS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 2.0.5-alpha, 2.2.0
    • None
    • None
    • None

    Description

      On a secured HDFS, the webUI for the Active Namenode will display, but when you select a Live Datanode, the browser displays an error and does not display datanode information. It does list a link to "Logs" but when you click on that you get an unauthorized error message.

      When user click on the "live nodes" link on the namenode webui, it goes to "dfsnodelist.jsp" to show the list of datanodes;
      on top half of the "dfsnodelist.jsp" page, you can choose to "browse the filesystem", which direct user to the link "http://:50070/nn_browsedfscontent.jsp", and this "nn_browsedfscontent.jsp" will redirect user to a random datanode "http://:1006/browseDirectory.jsp?namenodeInfoPort=50070&dir=/&delegation=***&nnaddr=192.168.2.201:8020"; note here the "delegation" is added by namenode to the above link; so in this link, user can browse the filesystem;
      On the bottom half of the "dfsnodelist.jsp" page, a list of nodes are shown; when you click on one data node, the page goes to "http://**:1006/browseDirectory.jsp?namenodeInfoPort=50070&dir=%2F&nnaddr=192.168.2.201:8020", without the "delegation" part, so in this link, user will not be able to browse the content of the filesystem, and an error message is shown.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              stanley_shi stanley shi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: