code: public static void addInputPath(Job job, 
                                    Path path) throws IOException {
      Configuration conf = job.getConfiguration();
      FileSystem fs = FileSystem.get(conf);
      path = path.makeQualified(fs);
      String dirStr = StringUtils.escapeString(path.toString());
      String dirs = conf.get("mapred.input.dir");
      conf.set("mapred.input.dir", dirs == null ? dirStr : dirs + "," + dirStr);
    }
docs: Add a {@link Path} to the list of inputs for the map-reduce job.
  
  @param job The {@link Job} to modify
  @param path {@link Path} to be added to the list of inputs for
  the map-reduce job.