You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by cn...@apache.org on 2026/03/03 19:06:24 UTC

(hadoop) 01/02: MAPREDUCE-7527. Fix /jobhistory/attempts/ page not rendering attempt information (#8285). Contributed by Ayush Saxena.

This is an automated email from the ASF dual-hosted git repository.

cnauroth pushed a commit to branch branch-3.5.0
in repository https://gitbox.apache.org/repos/asf/hadoop.git

commit e24b027d09466fe35f0f07703541f15dae87e636
Author: Ayush Saxena <ay...@apache.org>
AuthorDate: Mon Mar 2 10:28:00 2026 +0530

    MAPREDUCE-7527. Fix /jobhistory/attempts/ page not rendering attempt information (#8285). Contributed by Ayush Saxena.
    
    Signed-off-by: Chris Nauroth <cn...@apache.org>
    Signed-off-by: Shilun Fan <sl...@apache.org>
---
 .../main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebApp.java  | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebApp.java b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebApp.java
index f51298b4a38..5592d04bd9f 100644
--- a/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebApp.java
+++ b/hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/main/java/org/apache/hadoop/mapreduce/v2/hs/webapp/HsWebApp.java
@@ -27,9 +27,12 @@
 
 import org.apache.hadoop.mapreduce.v2.app.AppContext;
 import org.apache.hadoop.mapreduce.v2.app.webapp.AMParams;
+import org.apache.hadoop.mapreduce.v2.app.webapp.App;
 import org.apache.hadoop.mapreduce.v2.hs.HistoryContext;
 import org.apache.hadoop.yarn.webapp.WebApp;
 
+import com.google.inject.Singleton;
+
 public class HsWebApp extends WebApp implements AMParams {
 
   private HistoryContext history;
@@ -40,6 +43,7 @@ public HsWebApp(HistoryContext history) {
 
   @Override
   public void setup() {
+    bind(App.class).in(Singleton.class);
     bind(AppContext.class).toInstance(history);
     bind(HistoryContext.class).toInstance(history);
     route("/", HsController.class);


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org