|
@@ -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="";
|
|
|
}
|
|
|
}
|