HDFS-11999. Ozone: Clarify startup error message of Datanode in case namenode is missing. Contributed by Marton Elek.
This commit is contained in:
parent
185e3ad744
commit
14a94e7a4f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue