HDFS-15919. BlockPoolManager should log stack trace if unable to get Namenode addresses. Contributed by Stephen O'Donnell.
This commit is contained in:
parent
654555783d
commit
ed5814deff
@ -158,7 +158,7 @@ void refreshNamenodes(Configuration conf)
|
|||||||
newLifelineAddressMap =
|
newLifelineAddressMap =
|
||||||
DFSUtil.getNNLifelineRpcAddressesForCluster(conf);
|
DFSUtil.getNNLifelineRpcAddressesForCluster(conf);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
LOG.warn("Unable to get NameNode addresses.");
|
LOG.warn("Unable to get NameNode addresses.", ioe);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newAddressMap == null || newAddressMap.isEmpty()) {
|
if (newAddressMap == null || newAddressMap.isEmpty()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user