use of org.apache.hadoop.examples.terasort.TeraSort in project whirr by apache.
the class HadoopServiceTeraSortBenchmark method runTeraSort.
private void runTeraSort() throws Exception {
StopWatch stopWatch = new StopWatch();
TeraSort teraSort = new TeraSort();
teraSort.setConf(controller.getJobConf());
LOG.info("Starting TeraSort");
stopWatch.start();
teraSort.run(new String[] { "input", "output" });
stopWatch.stop();
LOG.info("TeraSort took {} ms", stopWatch.getTime());
}