HDFS-14673. The console log is noisy when using DNSDomainNameResolver to resolve NameNode.

This commit is contained in:
HUAN-PING SU 2019-07-27 02:08:46 +08:00 committed by Inigo Goiri
parent c01e137273
commit ecc8acfd24

View File

@ -234,7 +234,7 @@ Collection<InetSocketAddress> getResolvedHostsIfNecessary(
conf, nameNodeUri, HdfsClientConfigKeys.Failover.RESOLVE_SERVICE_KEY); conf, nameNodeUri, HdfsClientConfigKeys.Failover.RESOLVE_SERVICE_KEY);
// If the address needs to be resolved, get all of the IP addresses // If the address needs to be resolved, get all of the IP addresses
// from this address and pass them into the proxy // from this address and pass them into the proxy
LOG.info("Namenode domain name will be resolved with {}", LOG.debug("Namenode domain name will be resolved with {}",
dnr.getClass().getName()); dnr.getClass().getName());
for (InetSocketAddress address : addressesOfNns) { for (InetSocketAddress address : addressesOfNns) {
String[] resolvedHostNames = dnr.getAllResolvedHostnameByDomainName( String[] resolvedHostNames = dnr.getAllResolvedHostnameByDomainName(