You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by br...@apache.org on 2021/04/02 04:35:15 UTC
[hadoop] branch branch-3.3 updated: HADOOP-17587. Kinit with keytab
should not display the keytab file's full path in any logs. Contributed by
Ravuri Sushma sree.
This is an automated email from the ASF dual-hosted git repository.
brahma pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new 90bbaca HADOOP-17587. Kinit with keytab should not display the keytab file's full path in any logs. Contributed by Ravuri Sushma sree.
90bbaca is described below
commit 90bbaca88b28dc9b8d453cc8e5cb713d9a45a156
Author: Brahma Reddy Battula <br...@apache.org>
AuthorDate: Fri Apr 2 10:03:50 2021 +0530
HADOOP-17587. Kinit with keytab should not display the keytab file's full path in any logs. Contributed by Ravuri Sushma sree.
(cherry picked from commit bc7689abf5723fb6ec763266227801636105f5a1)
---
.../main/java/org/apache/hadoop/security/UserGroupInformation.java | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
index b783f82..67d1518 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
@@ -1126,9 +1126,10 @@ public class UserGroupInformation {
setLoginUser(u);
- LOG.info("Login successful for user {} using keytab file {}. Keytab auto" +
- " renewal enabled : {}",
- user, path, isKerberosKeyTabLoginRenewalEnabled());
+ LOG.info(
+ "Login successful for user {} using keytab file {}. Keytab auto"
+ + " renewal enabled : {}",
+ user, new File(path).getName(), isKerberosKeyTabLoginRenewalEnabled());
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org