public static Path getStagingDir(Configuration conf) throws IOException, InterruptedException {
    return JobSubmissionFiles.getStagingDir(new Cluster(conf), conf);
  }
Initializes the staging directory and returns the path.
@param conf system configuration
@return staging directory path
@throws IOException          if the ownership on the staging directory is not as expected
@throws InterruptedException if the thread getting the staging directory is interrupted
hbase-hadoop-compat/src/main/java/org/apache/hadoop/hbase/mapreduce/JobUtil.java