You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by br...@apache.org on 2020/02/14 11:21:23 UTC

[hadoop] branch trunk updated: YARN-10136. [Router] : Application metrics are hardcode as N/A in UI. Contributed by Bilwa S T.

This is an automated email from the ASF dual-hosted git repository.

brahma pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 20add89  YARN-10136. [Router] : Application metrics are hardcode as N/A in UI. Contributed by  Bilwa S T.
20add89 is described below

commit 20add897187adf7c836b20c72e347917d01df9aa
Author: Brahma Reddy Battula <br...@apache.org>
AuthorDate: Fri Feb 14 16:50:29 2020 +0530

    YARN-10136. [Router] : Application metrics are hardcode as N/A in UI. Contributed by  Bilwa S T.
---
 .../apache/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 cd588fc..5dd40cf 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()).


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org