From 2fc5786989a1ef4d08c1b244a4eb29f778982dc6 Mon Sep 17 00:00:00 2001 From: Prabhu Joseph Date: Thu, 9 May 2019 16:54:47 +0530 Subject: [PATCH] YARN-9522 --- .../src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java index 0c7a536..e09977d 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/webapp/AppBlock.java @@ -32,6 +32,7 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.CommonConfigurationKeys; import org.apache.hadoop.security.UserGroupInformation; +import org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler; import org.apache.hadoop.security.http.RestCsrfPreventionFilter; import org.apache.hadoop.util.StringUtils; import org.apache.hadoop.yarn.api.ApplicationBaseProtocol; @@ -84,7 +85,8 @@ protected AppBlock(ApplicationBaseProtocol appBaseProt, ViewContext ctx, this.conf = conf; // check if UI is unsecured. String httpAuth = conf.get(CommonConfigurationKeys.HADOOP_HTTP_AUTHENTICATION_TYPE); - this.unsecuredUI = (httpAuth != null) && httpAuth.equals("simple"); + this.unsecuredUI = (httpAuth != null) && (httpAuth.equals("simple") || + httpAuth.equals(PseudoAuthenticationHandler.class.getName())); } @Override -- 2.7.4 (Apple Git-66)