From dab611e605c60bf52d402765f090eb6387b4940d Mon Sep 17 00:00:00 2001 From: Jian He Date: Sun, 23 Oct 2016 15:56:22 -0700 Subject: [PATCH] Revert YARN-4126. RM should not issue delegation tokens in unsecure mode. (cherry picked from commit bb8214cab8a239385c2b06ad689d87b82abf6964) --- .../hadoop/yarn/server/resourcemanager/ClientRMService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java index b92c062ec0e..1b8d164b7e1 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java @@ -1218,7 +1218,7 @@ public class ClientRMService extends AbstractService implements .contains(UserGroupInformation.getCurrentUser() .getRealAuthenticationMethod()); } else { - return false; + return true; } }