From 9c4ac62d686f878643ce5c6cfad650255a9e5721 Mon Sep 17 00:00:00 2001 From: Jim Brennan Date: Fri, 25 Jun 2021 20:32:08 +0000 Subject: [PATCH] YARN-10824. Title not set for JHS and NM webpages. Contributed by Bilwa S T. (cherry picked from commit 7c7d02edbd6c17ee8ae2c4bf75e87adace059b76) --- .../org/apache/hadoop/mapreduce/v2/hs/webapp/HsAboutPage.java | 1 + .../apache/hadoop/yarn/server/nodemanager/webapp/NodePage.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsAboutPage.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsAboutPage.java index d544c6ba7cd..8b6feab1e7a 100644 --- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsAboutPage.java +++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsAboutPage.java @@ -39,6 +39,7 @@ public class HsAboutPage extends HsView { commonPreHead(html); //override the nav config from commonPReHead set(initID(ACCORDION, "nav"), "{autoHeight:false, active:0}"); + setTitle("About History Server"); } /** diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NodePage.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NodePage.java index ae9b92d6e3d..e0efb1392f3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NodePage.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/webapp/NodePage.java @@ -41,7 +41,7 @@ public class NodePage extends NMView { @Override protected void commonPreHead(HTML<__> html) { super.commonPreHead(html); - + setTitle("NodeManager information"); set(initID(ACCORDION, "nav"), "{autoHeight:false, active:1}"); }