// Run the tool.
LOG.debug("Running tool " + tool.getClass().getName() + " with args " + Arrays.toString(args));
KijiToolLauncher launcher = new KijiToolLauncher();
launcher.setConf(conf);
int exitCode = launcher.run(tool, args);
return new ToolResult(exitCode, output);
}
/**
* Writes the contents of the input stream to the temporary file provided.