code: public static void addInputPath(JobConf conf, Path path ) {
      if (!path.isAbsolute()) {
        FileSystem.LogForCollect.info("set input path to relative path: " + path
            + " working directory: " + conf.getWorkingDirectory());
      }
      path = new Path(conf.getWorkingDirectory(), path);
      String dirStr = StringUtils.escapeString(path.toString());
      String dirs = conf.get("mapred.input.dir");
      conf.set("mapred.input.dir", dirs == null ? dirStr :
        dirs + StringUtils.COMMA_STR + dirStr);
    }
docs: Add a {@link Path} to the list of inputs for the map-reduce job.
  
  @param conf The configuration of the job
  @param path {@link Path} to be added to the list of inputs for
  the map-reduce job.