if (!submit && !install) {
submit = true;
}
ConfigurableApplicationContext ctx =
SpringApplication.run(ClientApp.class, appArgs.toArray(new String[appArgs.size()]));
YarnClient client = ctx.getBean(YarnClient.class);
if (install) {
client.installApplication();
}
if (submit) {
client.submitApplication(false);
}
}