HDFS-5677. Need error checking for HA cluster configuration. Contributed by Vincent Sheffer.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1558217 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Konstantin Boudnik 2014-01-14 21:59:51 +00:00
parent 0b6a236258
commit 4b16c2b65e
2 changed files with 9 additions and 0 deletions

View File

@ -924,6 +924,9 @@ Release 2.3.0 - UNRELEASED
HDFS-5675. Add Mkdirs operation to NNThroughputBenchmark.
(Plamen Jeliazkov via shv)
HDFS-5677. Need error checking for HA cluster configuration.
(Vincent Sheffer via cos)
OPTIMIZATIONS
BUG FIXES

View File

@ -585,6 +585,12 @@ private static Map<String, InetSocketAddress> getAddressesForNameserviceId(
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);
}
}