code: public static void setOutputPath(Job job, Path outputDir) {
      job.getConfiguration().set("mapred.output.dir", outputDir.toString());
    }
docs: Set the {@link Path} of the output directory for the map-reduce job.
  
  @param job The job to modify
  @param outputDir the {@link Path} of the output directory for
  the map-reduce job.