code: private void initJobDir (SourceState state) throws IOException {
      String tmpBase = state.getProp(MRCompactor.COMPACTION_TMP_DEST_DIR, MRCompactor.DEFAULT_COMPACTION_TMP_DEST_DIR);
      String jobId;
  
      if (state instanceof JobState) {
        jobId = ((JobState) state).getJobId();
      } else {
        jobId = UUID.randomUUID().toString();
      }
  
      this.tmpJobDir = new Path (tmpBase, jobId);
      this.fs.mkdirs(this.tmpJobDir);
      state.setProp (MRCompactor.COMPACTION_JOB_DIR, tmpJobDir.toString());
      log.info ("Job dir is created under {}", this.tmpJobDir);
    }
docs: Create a temporary job directory based on job id or (if not available) UUID