From 20add897187adf7c836b20c72e347917d01df9aa Mon Sep 17 00:00:00 2001 From: Brahma Reddy Battula Date: Fri, 14 Feb 2020 16:50:29 +0530 Subject: [PATCH] YARN-10136. [Router] : Application metrics are hardcode as N/A in UI. Contributed by Bilwa S T. --- .../hadoop/yarn/server/router/webapp/AboutBlock.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/webapp/AboutBlock.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/webapp/AboutBlock.java index cd588fc442..5dd40cf72f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/webapp/AboutBlock.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/main/java/org/apache/hadoop/yarn/server/router/webapp/AboutBlock.java @@ -58,12 +58,12 @@ public class AboutBlock extends HtmlBlock { YarnConfiguration.DEFAULT_FEDERATION_ENABLED); info("Cluster Status"). __("Federation Enabled", isEnabled). - __("Applications Submitted", "N/A"). - __("Applications Pending", "N/A"). - __("Applications Running", "N/A"). - __("Applications Failed", "N/A"). - __("Applications Killed", "N/A"). - __("Applications Completed", "N/A"). + __("Applications Submitted", metrics.getAppsSubmitted()). + __("Applications Pending", metrics.getAppsPending()). + __("Applications Running", metrics.getAppsRunning()). + __("Applications Failed", metrics.getAppsFailed()). + __("Applications Killed", metrics.getAppsKilled()). + __("Applications Completed", metrics.getAppsCompleted()). __("Containers Allocated", metrics.getContainersAllocated()). __("Containers Reserved", metrics.getReservedContainers()). __("Containers Pending", metrics.getPendingContainers()).