hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jia...@apache.org
Subject hadoop git commit: YARN-7801. AmFilterInitializer should addFilter after fill all parameters. Contributed by Wangda Tan
Date Wed, 24 Jan 2018 19:20:56 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-3.0 ecfdd01be -> 7598f7332


YARN-7801. AmFilterInitializer should addFilter after fill all parameters. Contributed by
Wangda Tan


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/7598f733
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/7598f733
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/7598f733

Branch: refs/heads/branch-3.0
Commit: 7598f7332042f5c2733e191567f1b1420f1e390a
Parents: ecfdd01
Author: Jian He <jianhe@apache.org>
Authored: Wed Jan 24 11:16:54 2018 -0800
Committer: Jian He <jianhe@apache.org>
Committed: Wed Jan 24 11:20:23 2018 -0800

----------------------------------------------------------------------
 .../hadoop/yarn/server/webproxy/amfilter/AmFilterInitializer.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/7598f733/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/amfilter/AmFilterInitializer.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/amfilter/AmFilterInitializer.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/amfilter/AmFilterInitializer.java
index c3ddc54..27742e4 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/amfilter/AmFilterInitializer.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/main/java/org/apache/hadoop/yarn/server/webproxy/amfilter/AmFilterInitializer.java
@@ -59,7 +59,6 @@ public class AmFilterInitializer extends FilterInitializer {
     }
     sb.setLength(sb.length() - 1);
     params.put(AmIpFilter.PROXY_URI_BASES, sb.toString());
-    container.addFilter(FILTER_NAME, FILTER_CLASS, params);
 
     // Handle RM HA urls
     // Include yarn-site.xml in the classpath
@@ -75,6 +74,8 @@ public class AmFilterInitializer extends FilterInitializer {
         params.put(RM_HA_URLS, StringUtils.join(",", urls));
       }
     }
+
+    container.addFilter(FILTER_NAME, FILTER_CLASS, params);
   }
 
   private Collection<String> getRmIds(Configuration conf) {


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


Mime
View raw message