Description
YARNUIV2 fails with Authentication Required with kerberos authentication type whereas YARNUI works fine.
Problem accessing /ui2/. Reason: Authentication required
As per RM logs, Knox sends request with Authorization field which does not start with Negotiate.
In case of YARNUI, this field is excluded by the Dispatcher.
2019-05-02 15:32:30,808 WARN server.KerberosAuthenticationHandler (KerberosAuthenticationHandler.java:authenticate(274)) - 'Authorization' does not start with 'Negotiate' : Basic YW1iYXJpLXFhOkJhZFBhc3MjMQ==
YARNUIV2 service.xml configures PassAllHeadersDispatch whereas YARNUI has DefaultDispatch which excludes Authorization field.