|
@@ -554,6 +554,12 @@ public class DFSUtil {
|
|
|
String address = getConfValue(defaultValue, suffix, conf, keys);
|
|
|
if (address != null) {
|
|
|
InetSocketAddress isa = NetUtils.createSocketAddr(address);
|
|
|
+ if (isa.isUnresolved()) {
|
|
|
+ LOG.warn("Namenode for " + nsId +
|
|
|
+ " remains unresolved for ID " + nnId +
|
|
|
+ ". Check your hdfs-site.xml file to " +
|
|
|
+ "ensure namenodes are configured properly.");
|
|
|
+ }
|
|
|
ret.put(nnId, isa);
|
|
|
}
|
|
|
}
|
|
@@ -1348,4 +1354,4 @@ public class DFSUtil {
|
|
|
return (value == null || value.isEmpty()) ?
|
|
|
defaultKey : DFSConfigKeys.DFS_WEB_AUTHENTICATION_KERBEROS_KEYTAB_KEY;
|
|
|
}
|
|
|
-}
|
|
|
+}
|