public static Path getBulkOutputDir(Path restoreRootDir, String tableName, Configuration conf,
    boolean deleteOnExit) throws IOException {
    FileSystem fs = restoreRootDir.getFileSystem(conf);
    Path path = new Path(restoreRootDir,
      "bulk_output-" + tableName + "-" + EnvironmentEdgeManager.currentTime());
    if (deleteOnExit) {
      fs.deleteOnExit(path);
    }
    return path;
  }
Create restore request.
@param backupRootDir backup root dir
@param backupId      backup id
@param check         check only
@param fromTables    table list from
@param toTables      table list to
@param isOverwrite   overwrite data
@return request obkect
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/util/BackupUtils.java