HDFS-11999. Ozone: Clarify startup error message of Datanode in case namenode is missing. Contributed by Marton Elek.

This commit is contained in:
Anu Engineer 2017-06-20 16:37:03 -07:00
parent 185e3ad744
commit 14a94e7a4f
1 changed files with 4 additions and 3 deletions

View File

@ -160,12 +160,13 @@ class BlockPoolManager {
newLifelineAddressMap =
DFSUtil.getNNLifelineRpcAddressesForCluster(conf);
} catch (IOException ioe) {
LOG.warn("Unable to get NameNode addresses. " +
"This may be an Ozone-only cluster.");
LOG.warn("Unable to get NameNode addresses. (Note: Namenode is required "
+ "even for Ozone cluster.)");
}
if (newAddressMap.isEmpty()) {
throw new IOException("No services to connect (NameNodes or SCM).");
throw new IOException("No services to connect, missing NameNode " +
"address.");
}
synchronized (refreshNamenodesLock) {