From 51be95e234624cfeec5c2149ad3cbe00535662a2 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 f607599a922..6bfe2eab91a 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 @@ -40,6 +40,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 f51f0c551af..36b89fb6fff 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}"); }