HADOOP-16366. Fixed ProxyUserAuthenticationFilterInitializer for timeline server.

Contributed by Prabhu Joseph
This commit is contained in:
Eric Yang 2019-06-14 12:54:16 -04:00
parent 9ebbda342f
commit 3ba090f436

View File

@ -165,10 +165,10 @@ protected void addFilters(Configuration conf) {
TimelineReaderAuthenticationFilterInitializer.class.getName())) { TimelineReaderAuthenticationFilterInitializer.class.getName())) {
defaultInitializers.add( defaultInitializers.add(
TimelineReaderAuthenticationFilterInitializer.class.getName()); TimelineReaderAuthenticationFilterInitializer.class.getName());
} else {
defaultInitializers.add(
ProxyUserAuthenticationFilterInitializer.class.getName());
} }
} else {
defaultInitializers.add(
ProxyUserAuthenticationFilterInitializer.class.getName());
} }
defaultInitializers.add( defaultInitializers.add(