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 @@ - -
-
-
- Node Managers -
-
- {{donut-chart data=model.clusterMetrics.firstObject.getNodesDataForDonutChart - showLabels=true - parentId="nodes-donut-chart" - ratio=0.6 - maxHeight=350 - colorTargets="good error warn"}} -
-
-

@@ -142,6 +126,23 @@ +
+
+
+
+ Node Managers +
+
+ {{donut-chart data=model.clusterMetrics.firstObject.getNodesDataForDonutChart + showLabels=true + parentId="nodes-donut-chart" + ratio=0.6 + maxHeight=350 + colorTargets="good error warn"}} +
+
+
+
{{/if}} diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-nodes.hbs b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-nodes.hbs index 795d00efb11..79d9efa20e7 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-nodes.hbs +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/templates/yarn-nodes.hbs @@ -47,7 +47,7 @@
{{#if model.clusterMetrics}}
-
+
Node Managers