YARN-4568. Fix message when NodeManager runs into errors initializing the recovery directory. (rchiang)
This commit is contained in:
parent
36cd0bce83
commit
0a5def155e
|
@ -287,7 +287,14 @@ public class NodeManager extends CompositeService
|
|||
.RM_WORK_PRESERVING_RECOVERY_ENABLED,
|
||||
YarnConfiguration.DEFAULT_RM_WORK_PRESERVING_RECOVERY_ENABLED);
|
||||
|
||||
try {
|
||||
initAndStartRecoveryStore(conf);
|
||||
} catch (IOException e) {
|
||||
String recoveryDirName = conf.get(YarnConfiguration.NM_RECOVERY_DIR);
|
||||
throw new
|
||||
YarnRuntimeException("Unable to initialize recovery directory at "
|
||||
+ recoveryDirName, e);
|
||||
}
|
||||
|
||||
NMContainerTokenSecretManager containerTokenSecretManager =
|
||||
new NMContainerTokenSecretManager(conf, nmStore);
|
||||
|
|
Loading…
Reference in New Issue