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

duplicative dfs_hosts entries handled wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.1-alpha
    • 2.1.0-beta
    • None
    • None

    Description

      A dead DN listed in dfs_hosts_allow.txt by IP and in dfs_hosts_exclude.txt by hostname ends up being displayed twice in dfsnodelist.jsp?whatNodes=DEAD after the NN restarts because getDatanodeListForReport does not handle such a "pseudo-duplicate" correctly:

      1. the "Remove any nodes we know about from the map" loop no longer has the knowledge to remove the spurious entries
      2. the "The remaining nodes are ones that are referenced by the hosts files" loop does not do hostname lookups, so does not know that the IP and hostname refer to the same host.

      Relatedly, such an IP-based dfs_hosts entry results in a cosmetic problem in the JSP output: The Node column shows ":50010" as the nodename, with HTML markup <a href="http://:50075/browseDirectory.jsp?namenodeInfoPort=50070&dir=%2F&nnaddr=172.29.97.196:8020" title="172.29.97.216:50010">:50010</a>.

      Attachments

        1. HDFS-3934.001.patch
          5 kB
          Colin McCabe
        2. HDFS-3934.002.patch
          6 kB
          Colin McCabe
        3. HDFS-3934.003.patch
          13 kB
          Colin McCabe
        4. HDFS-3934.004.patch
          15 kB
          Colin McCabe
        5. HDFS-3934.005.patch
          25 kB
          Colin McCabe
        6. HDFS-3934.006.patch
          25 kB
          Colin McCabe
        7. HDFS-3934.007.patch
          26 kB
          Colin McCabe
        8. HDFS-3934.008.patch
          28 kB
          Colin McCabe
        9. HDFS-3934.010.patch
          39 kB
          Colin McCabe
        10. HDFS-3934.011.patch
          37 kB
          Colin McCabe
        11. HDFS-3934.012.patch
          37 kB
          Colin McCabe
        12. HDFS-3934.013.patch
          37 kB
          Colin McCabe
        13. HDFS-3934.014.patch
          37 kB
          Colin McCabe
        14. HDFS-3934.015.patch
          37 kB
          Colin McCabe
        15. HDFS-3934.016.patch
          40 kB
          Colin McCabe
        16. HDFS-3934.017.patch
          40 kB
          Colin McCabe

        Issue Links

          Activity

            People

              cmccabe Colin McCabe
              adi2 Andy Isaacson
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: