code: public static void setSkipOutputPath(JobConf conf, Path path) {
      String pathStr = null;
      if(path==null) {
        pathStr = "none";
      } else {
        pathStr = path.toString();
      }
      conf.set(OUT_PATH, pathStr);
    }
docs: Set the directory to which skipped records are written. By default it is
  the sub directory of the output _logs directory.
  User can stop writing skipped records by setting the value null.
  
  @param conf the configuration.
  @param path skip output directory path