code: public static void markSuccessfulOutputDir(Path path, JobConf conf) throws IOException {
          FileSystem fs = FileSystem.get(conf);
          // create a file in the folder to mark it
          if (fs.exists(path)) {
              Path filePath = new Path(path, VersionedStore.HADOOP_SUCCESS_FLAG);
              fs.create(filePath).close();
          }
      }
docs: Mark the output dir of the job for which the context is passed.