@Bean
@ConditionalOnMissingBean(AppmasterLauncherRunner.class)
@ConditionalOnBean(YarnAppmaster.class)
public AppmasterLauncherRunner appmasterLauncherRunner() {
AppmasterLauncherRunner runner = new AppmasterLauncherRunner();
runner.setWaitLatch(syap.isKeepContextAlive());
runner.setContainerCount(syap.getContainerCount());
return runner;
}