YARN-6205. Default lifetime for native services app is invalid. Contributed by Billie Rinaldi
This commit is contained in:
parent
500695d726
commit
0ed8d4ebe6
@ -2070,7 +2070,7 @@ protected AppMasterLauncher setupAppMasterLauncher(String clustername,
|
||||
amLauncher.setKeepContainersOverRestarts(true);
|
||||
// set lifetime in submission context;
|
||||
Map<ApplicationTimeoutType, Long> appTimeout = new HashMap<>();
|
||||
if (lifetime >= 0) {
|
||||
if (lifetime > 0) {
|
||||
appTimeout.put(ApplicationTimeoutType.LIFETIME, lifetime);
|
||||
}
|
||||
amLauncher.submissionContext.setApplicationTimeouts(appTimeout);
|
||||
|
Loading…
Reference in New Issue
Block a user