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 @@ public class SliderClient extends AbstractSliderLaunchedService implements RunSe
|
||||||
amLauncher.setKeepContainersOverRestarts(true);
|
amLauncher.setKeepContainersOverRestarts(true);
|
||||||
// set lifetime in submission context;
|
// set lifetime in submission context;
|
||||||
Map<ApplicationTimeoutType, Long> appTimeout = new HashMap<>();
|
Map<ApplicationTimeoutType, Long> appTimeout = new HashMap<>();
|
||||||
if (lifetime >= 0) {
|
if (lifetime > 0) {
|
||||||
appTimeout.put(ApplicationTimeoutType.LIFETIME, lifetime);
|
appTimeout.put(ApplicationTimeoutType.LIFETIME, lifetime);
|
||||||
}
|
}
|
||||||
amLauncher.submissionContext.setApplicationTimeouts(appTimeout);
|
amLauncher.submissionContext.setApplicationTimeouts(appTimeout);
|
||||||
|
|
Loading…
Reference in New Issue