Skip to content

Commit b050ede

Browse files
authored
MAPREDUCE-7506. Fix Jobhistoryserver UI - WebAppException controller for jobhistory not found (#7736) Contributed by D M Murali Krishna Reddy.
Signed-off-by: Shilun Fan <[email protected]>
1 parent 54e72c4 commit b050ede

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ protected void initializeWebApp(Configuration conf) throws IOException {
168168
ClientRMProxy.createRMProxy(conf, ApplicationClientProtocol.class);
169169
// NOTE: there should be a .at(InetSocketAddress)
170170
WebApps
171-
.$for("jobhistory", HistoryClientService.class, this, "ws")
171+
.$for("jobhistory", HistoryClientService.class, this, "hs-ws")
172172
.with(conf)
173173
.withHttpSpnegoKeytabKey(
174174
JHAdminConfig.MR_WEBAPP_SPNEGO_KEYTAB_FILE_KEY)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public void setup() {
4444
bind(HistoryContext.class).toInstance(history);
4545
route("/", HsController.class);
4646
route("/app", HsController.class);
47+
route("/jobhistory", HsController.class);
4748
route(pajoin("/job", JOB_ID), HsController.class, "job");
4849
route(pajoin("/conf", JOB_ID), HsController.class, "conf");
4950
routeWithoutDefaultView(pajoin("/downloadconf", JOB_ID),

0 commit comments

Comments
 (0)