From af389d989770c4218c24e640f572bc7492f7d4b3 Mon Sep 17 00:00:00 2001 From: Eric Badger Date: Thu, 5 Nov 2020 21:46:14 +0000 Subject: [PATCH] HADOOP-17342. Creating a token identifier should not do kerberos name resolution. Contributed by Jim Brennan. --- .../token/delegation/AbstractDelegationTokenIdentifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java index 72d2d45983..3f27e45af8 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/AbstractDelegationTokenIdentifier.java @@ -49,7 +49,7 @@ extends TokenIdentifier { private int masterKeyId = 0; public AbstractDelegationTokenIdentifier() { - this(new Text(), new Text(), new Text()); + this(null, null, null); } public AbstractDelegationTokenIdentifier(Text owner, Text renewer, Text realUser) {