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 =
|
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. (Note: Namenode is required "
|
||||||
"This may be an Ozone-only cluster.");
|
+ "even for Ozone cluster.)");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newAddressMap.isEmpty()) {
|
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) {
|
synchronized (refreshNamenodesLock) {
|
||||||
|
|
Loading…
Reference in New Issue