Description
YARNUIV2 fails with "Request is a replay attack" when below settings configured.
hadoop.security.authentication = kerberos
hadoop.http.authentication.type = kerberos
hadoop.http.filter.initializers = org.apache.hadoop.security.AuthenticationFilterInitializer
yarn.resourcemanager.webapp.delegation-token-auth-filter.enabled = false
AuthenticationFilter is added twice by the Yarn UI2 Context causing the issue.
2019-06-12 11:59:43,900 INFO webapp.RMWebAppUtil (RMWebAppUtil.java:addFiltersForUI2Context(483)) - UI2 context filter Name:authentication, className=org.apache.hadoop.security.authentication.server.AuthenticationFilter 2019-06-12 11:59:43,900 INFO webapp.RMWebAppUtil (RMWebAppUtil.java:addFiltersForUI2Context(483)) - UI2 context filter Name:authentication, className=org.apache.hadoop.security.authentication.server.AuthenticationFilter
Another issue with TimelineReaderServer which ignores ProxyUserAuthenticationFilterInitializer when hadoop.http.filter.initializers is configured.