protected ArrayList<HRegionInfo> getRegionInfoList(String tableName) throws IOException { Set<HRegionInfo> hRegionInfoSet = new TreeSet<>(); try (HTable table = new HTable(conf, tableName)) { hRegionInfoSet.addAll(table.getRegionLocations().keySet()); } return new ArrayList<>(hRegionInfoSet); }