HADOOP-8086. KerberosName silently sets defaultRealm to empty if the Kerberos config is not found, it should log a WARN (tucu)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1310233 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d166bd184d
commit
31aee4aa2a
@ -23,10 +23,11 @@
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.regex.Matcher;
|
import java.util.regex.Matcher;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
import java.lang.reflect.Method;
|
|
||||||
|
|
||||||
import org.apache.hadoop.classification.InterfaceAudience;
|
import org.apache.hadoop.classification.InterfaceAudience;
|
||||||
import org.apache.hadoop.classification.InterfaceStability;
|
import org.apache.hadoop.classification.InterfaceStability;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -38,6 +39,8 @@
|
|||||||
@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"})
|
@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce"})
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public class KerberosName {
|
public class KerberosName {
|
||||||
|
private static final Logger LOG = LoggerFactory.getLogger(KerberosName.class);
|
||||||
|
|
||||||
/** The first component of the name */
|
/** The first component of the name */
|
||||||
private final String serviceName;
|
private final String serviceName;
|
||||||
/** The second component of the name. It may be null. */
|
/** The second component of the name. It may be null. */
|
||||||
@ -81,6 +84,7 @@ public class KerberosName {
|
|||||||
try {
|
try {
|
||||||
defaultRealm = KerberosUtil.getDefaultRealm();
|
defaultRealm = KerberosUtil.getDefaultRealm();
|
||||||
} catch (Exception ke) {
|
} catch (Exception ke) {
|
||||||
|
LOG.warn("Kerberos krb5 configuration not found, setting default realm to empty");
|
||||||
defaultRealm="";
|
defaultRealm="";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -255,6 +255,9 @@ Release 2.0.0 - UNRELEASED
|
|||||||
HADOOP-8077. HA: fencing method should be able to be configured on
|
HADOOP-8077. HA: fencing method should be able to be configured on
|
||||||
a per-NN or per-NS basis (todd)
|
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
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
Loading…
Reference in New Issue
Block a user