code: public static Path getOutputPath(JobContext job) {
      String name = job.getConfiguration().get("mapred.output.dir");
      return name == null ? null: new Path(name);
    }
docs: Get the {@link Path} to the output directory for the map-reduce job.
  
  @return the {@link Path} to the output directory for the map-reduce job.
  @see FileOutputFormat#getWorkOutputPath(TaskInputOutputContext)