From e3e7daa4f586648be5794cfe78f2f291cf104785 Mon Sep 17 00:00:00 2001 From: Szilard Nemeth Date: Wed, 30 Oct 2019 16:26:56 +0100 Subject: [PATCH] YARN-9889. [UI] Add Application Tag column to RM All Applications table. Contributed by Kinga Marton --- .../yarn/server/resourcemanager/webapp/RMAppsBlock.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMAppsBlock.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMAppsBlock.java index b1c0cd94ed..3d257b774f 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMAppsBlock.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/RMAppsBlock.java @@ -60,6 +60,7 @@ protected void renderData(Block html) { TBODY> tbody = html.table("#apps").thead().tr().th(".id", "ID").th(".user", "User") .th(".name", "Name").th(".type", "Application Type") + .th(".apptag", "Application Tags") .th(".queue", "Queue").th(".priority", "Application Priority") .th(".starttime", "StartTime") .th("launchtime", "LaunchTime") @@ -130,6 +131,10 @@ protected void renderData(Block html) { StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(app .getType()))) .append("\",\"") + .append( + StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4( + app.getApplicationTags() == null ? "" : app.getApplicationTags()))) + .append("\",\"") .append( StringEscapeUtils.escapeEcmaScript(StringEscapeUtils.escapeHtml4(app .getQueue()))).append("\",\"").append(String