public static Path getTmpRestoreOutputDir(FileSystem fs, Configuration conf) {
    String tmp =
      conf.get(HConstants.TEMPORARY_FS_DIRECTORY_KEY, fs.getHomeDirectory() + "/hbase-staging");
    return new Path(tmp);
  }
Build temporary output path
@param fs   filesystem for default output dir
@param conf configuration
@return output path
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/util/BackupUtils.java