From a6dd60513236840322c14265d8356dc7ddf37555 Mon Sep 17 00:00:00 2001 From: Alejandro Abdelnur Date: Fri, 6 Apr 2012 08:47:07 +0000 Subject: [PATCH] Merge -r 1310232:1310233 from trunk to branch. FIXES: HADOOP-8086 git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1310236 13f79535-47bb-0310-9956-ffa450edef68 --- .../hadoop/security/authentication/util/KerberosName.java | 6 +++++- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosName.java b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosName.java index 63958670713..95640269373 100644 --- a/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosName.java +++ b/hadoop-common-project/hadoop-auth/src/main/java/org/apache/hadoop/security/authentication/util/KerberosName.java @@ -23,10 +23,11 @@ import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; -import java.lang.reflect.Method; import org.apache.hadoop.classification.InterfaceAudience; import org.apache.hadoop.classification.InterfaceStability; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** @@ -38,6 +39,8 @@ import org.apache.hadoop.classification.InterfaceStability; @InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"}) @InterfaceStability.Evolving public class KerberosName { + private static final Logger LOG = LoggerFactory.getLogger(KerberosName.class); + /** The first component of the name */ private final String serviceName; /** The second component of the name. It may be null. */ @@ -81,6 +84,7 @@ public class KerberosName { try { defaultRealm = KerberosUtil.getDefaultRealm(); } catch (Exception ke) { + LOG.warn("Kerberos krb5 configuration not found, setting default realm to empty"); defaultRealm=""; } } diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 99e8f76bc29..ec48f40afce 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -139,6 +139,9 @@ Release 2.0.0 - UNRELEASED HADOOP-8077. HA: fencing method should be able to be configured on a per-NN or per-NS basis (todd) + HADOOP-8086. KerberosName silently sets defaultRealm to "" if the + Kerberos config is not found, it should log a WARN (tucu) + OPTIMIZATIONS BUG FIXES