.defaultsTo(true);
}
@Override
protected void runApplication(OptionSet options) throws Exception {
YarnInfoApplication app = new YarnInfoApplication();
Properties appProperties = new Properties();
appProperties.setProperty("spring.yarn.internal.YarnInfoApplication.operation", "SUBMITTED");
if (isFlagOn(options, verboseOption)) {
appProperties.setProperty("spring.yarn.internal.YarnInfoApplication.verbose", "true");
}
appProperties.setProperty("spring.yarn.internal.YarnInfoApplication.type", options.valueOf(typeOption));
app.appProperties(appProperties);
String info = app.run(new String[0]);
handleOutput(info);
}