Browse Source

MAPREDUCE-7506. Fix Jobhistoryserver UI - WebAppException controller for jobhistory not found (#7736) Contributed by D M Murali Krishna Reddy.

Signed-off-by: Shilun Fan <slfan1989@apache.org>
Murali Krishna 2 weeks ago
parent
commit
b050ede736

+ 1 - 1
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/HistoryClientService.java

@@ -168,7 +168,7 @@ public class HistoryClientService extends AbstractService {
         ClientRMProxy.createRMProxy(conf, ApplicationClientProtocol.class);
     // NOTE: there should be a .at(InetSocketAddress)
     WebApps
-        .$for("jobhistory", HistoryClientService.class, this, "ws")
+        .$for("jobhistory", HistoryClientService.class, this, "hs-ws")
         .with(conf)
         .withHttpSpnegoKeytabKey(
             JHAdminConfig.MR_WEBAPP_SPNEGO_KEYTAB_FILE_KEY)

+ 1 - 0
hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebApp.java

@@ -44,6 +44,7 @@ public class HsWebApp extends WebApp implements AMParams {
     bind(HistoryContext.class).toInstance(history);
     route("/", HsController.class);
     route("/app", HsController.class);
+    route("/jobhistory", HsController.class);
     route(pajoin("/job", JOB_ID), HsController.class, "job");
     route(pajoin("/conf", JOB_ID), HsController.class, "conf");
     routeWithoutDefaultView(pajoin("/downloadconf", JOB_ID),