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

This commit is contained in:
Jian He 2018-01-24 11:16:54 -08:00
parent 97607617ce
commit 55c32776b1

View File

@ -59,7 +59,6 @@ public void initFilter(FilterContainer container, Configuration conf) {
}
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 void initFilter(FilterContainer container, Configuration conf) {
params.put(RM_HA_URLS, StringUtils.join(",", urls));
}
}
container.addFilter(FILTER_NAME, FILTER_CLASS, params);
}
private Collection<String> getRmIds(Configuration conf) {