FileInputFormat.setInputPaths(job, new Path(args[0]));
mkdir(args[1], job.getConfiguration());
rmdir(args[1] + "/mean-output/", job.getConfiguration());
FileOutputFormat.setOutputPath(job, new Path(args[1] + "/mean-output/"));
boolean success = job.waitForCompletion(true);
return success ? 0 : 1;
}
public int runCovariance(String[] args) throws Exception {
HipiJob job = new HipiJob(getConf(), "Covariance");