private static Pair<Path, Path> getTableDirAndSplitFile(final Configuration conf,
    final TableName tableName) throws IOException {
    Path hbDir = CommonFSUtils.getRootDir(conf);
    Path tableDir = CommonFSUtils.getTableDir(hbDir, tableName);
    Path splitFile = new Path(tableDir, "_balancedSplit");
    return new Pair<>(tableDir, splitFile);
  }
@return A Pair where first item is table dir and second is the split file.
@throws IOException if a remote or network exception occurs
hbase-server/src/main/java/org/apache/hadoop/hbase/util/RegionSplitter.java