diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js index bc6e27ae0bf..dcc0c2997d8 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/cluster-metric.js @@ -39,6 +39,7 @@ export default DS.Model.extend({ totalNodes: DS.attr('number'), lostNodes: DS.attr('number'), unhealthyNodes: DS.attr('number'), + decommissioningNodes: DS.attr('number'), decommissionedNodes: DS.attr('number'), rebootedNodes: DS.attr('number'), activeNodes: DS.attr('number'), @@ -86,12 +87,16 @@ export default DS.Model.extend({ label: "Unhealthy", value: this.get("unhealthyNodes") }); + arr.push({ + label: "Decommissioning", + value: this.get("decommissioningNodes") + }); arr.push({ label: "Decomissioned", value: this.get("decommissionedNodes") }); return arr; - }.property("activeNodes", "unhealthyNodes", "decommissionedNodes"), + }.property("activeNodes", "unhealthyNodes", "decommissioningNodes", "decommissionedNodes"), getMemoryDataForDonutChart: function() { var type = "MB"; @@ -130,4 +135,4 @@ export default DS.Model.extend({ return arr; }.property("allocatedVirtualCores", "reservedVirtualCores", "availableVirtualCores"), -}); \ No newline at end of file +}); diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-rm-node.js b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-rm-node.js index 461bf003774..6baeca2568b 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-rm-node.js +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/models/yarn-rm-node.js @@ -53,7 +53,7 @@ export default DS.Model.extend({ nodeStateStyle: function() { var style = "default"; var nodeState = this.get("state"); - if (nodeState === "REBOOTED") { + if (nodeState === "REBOOTED" || nodeState === "DECOMMISSIONING") { style = "warning"; } else if (nodeState === "UNHEALTHY" || nodeState === "DECOMMISSIONED" || nodeState === "LOST" || nodeState === "SHUTDOWN") { diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/cluster-overview.hbs b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/cluster-overview.hbs index ac8f20acc33..e549ce568a2 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/cluster-overview.hbs +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/cluster-overview.hbs @@ -86,22 +86,6 @@ - -