HadoopScriptHandler handler = handler(
"env.ASAKUSA_HOME", getAsakusaHome().getAbsolutePath(),
"command.0", "@[999]");
ExecutionContext context = new ExecutionContext(
"tbatch", "tflow", "texec", ExecutionPhase.MAIN, map());
handler.execute(ExecutionMonitor.NULL, context, script);
}
private HadoopScriptHandler handler(String... keyValuePairs) {
Map<String, String> conf = map(keyValuePairs);
conf.put(JschProcessExecutor.KEY_USER, System.getProperty("user.name"));