YARN-7801. AmFilterInitializer should addFilter after fill all parameters. Contributed by Wangda Tan
This commit is contained in:
parent
97607617ce
commit
55c32776b1
@ -59,7 +59,6 @@ public void initFilter(FilterContainer container, Configuration conf) {
|
|||||||
}
|
}
|
||||||
sb.setLength(sb.length() - 1);
|
sb.setLength(sb.length() - 1);
|
||||||
params.put(AmIpFilter.PROXY_URI_BASES, sb.toString());
|
params.put(AmIpFilter.PROXY_URI_BASES, sb.toString());
|
||||||
container.addFilter(FILTER_NAME, FILTER_CLASS, params);
|
|
||||||
|
|
||||||
// Handle RM HA urls
|
// Handle RM HA urls
|
||||||
// Include yarn-site.xml in the classpath
|
// 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));
|
params.put(RM_HA_URLS, StringUtils.join(",", urls));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
container.addFilter(FILTER_NAME, FILTER_CLASS, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Collection<String> getRmIds(Configuration conf) {
|
private Collection<String> getRmIds(Configuration conf) {
|
||||||
|
Loading…
Reference in New Issue
Block a user