public static int getMetaRSPort(Connection connection) throws IOException {
    try (RegionLocator locator = connection.getRegionLocator(TableName.META_TABLE_NAME)) {
      return locator.getRegionLocation(Bytes.toBytes("")).getPort();
    }
  }
Creates a pre-split table for load testing. If the table already exists, logs a warning and
continues.
@return the number of regions the table was split into
hbase-testing-util/src/main/java/org/apache/hadoop/hbase/HBaseTestingUtility.java