Search in sources :

Example 1 with TeraSort

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());
}
Also used : TeraSort(org.apache.hadoop.examples.terasort.TeraSort) StopWatch(org.apache.commons.lang.time.StopWatch)

Aggregations

StopWatch (org.apache.commons.lang.time.StopWatch)1 TeraSort (org.apache.hadoop.examples.terasort.TeraSort)1