code: public static void setOutputPath(JobConf conf, Path outputDir) {
      if (!outputDir.isAbsolute()) {
        FileSystem.LogForCollect.info("set output path to relative path: "
            + outputDir + " working directory: " + conf.getWorkingDirectory());
      }
      outputDir = new Path(conf.getWorkingDirectory(), outputDir);
      conf.set("mapred.output.dir", outputDir.toString());
    }
docs: Set the {@link Path} of the output directory for the map-reduce job.
  
  @param conf The configuration of the job.
  @param outputDir the {@link Path} of the output directory for
  the map-reduce job.