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

Extend visualization for Decommissioning, Maintenance Mode under Datanode tab in the NameNode UI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.1
    • 3.3.0, 3.2.1, 3.1.3
    • datanode, namenode
    • None

    Description

      With HDFS-9391, table view is using css dynamic class name to match the state

      hadoop/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.html
      <td ng-value="{state}-{name}" class="dfshealth-node-icon dfshealth-node-{state}">{name} ({xferaddr})</td>
      

      Some css is missing when the datanode is going to

      hadoop/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js
                if (n.adminState === "In Service") {
                  n.state = "alive";
                } else if (nodes[i].adminState === "Decommission In Progress") {
                  n.state = "decommissioning";
                } else if (nodes[i].adminState === "Decommissioned") {
                  n.state = "decommissioned";
                } else if (nodes[i].adminState === "Entering Maintenance") {
                  n.state = "entering-maintenance";
                } else if (nodes[i].adminState === "In Maintenance") {
                  n.state = "in-maintenance";
                }
      

      dfshealth-node-decommissioning, dfshealth-node-entering-maintenance, dfshealth-node-in-maintenance should be added into hadoop.css

      Attachments

        1. HDFS-13231.001.patch
          2 kB
          Stephen O'Donnell
        2. option_2_with_colours_aligned.png
          156 kB
          Stephen O'Donnell
        3. option2_with_legend_split.png
          133 kB
          Stephen O'Donnell
        4. decommissioning_node.png
          127 kB
          Stephen O'Donnell
        5. trunk_icons.png
          33 kB
          Stephen O'Donnell

        Issue Links

          Activity

            People

              sodonnell Stephen O'Donnell
              billyean Haibo Yan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: