if (options.isDebug()) {
LOG.info("Starting {} with debugging enabled.", program.getId());
twillPreparer.enableDebugging();
}
TwillController twillController = twillPreparer
.withDependencies(new HBaseTableUtilFactory().get().getClass())
.addLogHandler(new PrinterLogHandler(new PrintWriter(System.out)))
.addSecureStore(YarnSecureStore.create(HBaseTokenUtils.obtainToken(hConf, new Credentials())))
.withApplicationArguments(
String.format("--%s", RunnableOptions.JAR), copiedProgram.getJarLocation().getName(),
String.format("--%s", RunnableOptions.RUNTIME_ARGS), runtimeArgs