code: public static void setInputPaths(Job job, 
                                     Path... inputPaths) throws IOException {
      Configuration conf = job.getConfiguration();
      FileSystem fs = FileSystem.get(conf);
      Path path = inputPaths[0].makeQualified(fs);
      StringBuffer str = new StringBuffer(StringUtils.escapeString(path.toString()));
      for(int i = 1; i < inputPaths.length;i++) {
        str.append(StringUtils.COMMA_STR);
        path = inputPaths[i].makeQualified(fs);
        str.append(StringUtils.escapeString(path.toString()));
      }
      conf.set("mapred.input.dir", str.toString());
    }
docs: Set the array of {@link Path}s as the list of inputs
  for the map-reduce job.
  
  @param job The job to modify
  @param inputPaths the {@link Path}s of the input directories/files
  for the map-reduce job.