|
51 | 51 | import java.util.TreeSet; |
52 | 52 | import java.util.concurrent.TimeUnit; |
53 | 53 | import java.util.concurrent.atomic.AtomicReference; |
54 | | -import java.util.stream.Collectors; |
55 | 54 | import org.apache.commons.io.FileUtils; |
56 | 55 | import org.apache.commons.lang3.RandomStringUtils; |
57 | 56 | import org.apache.commons.logging.impl.Jdk14Logger; |
|
75 | 74 | import org.apache.hadoop.hbase.client.Durability; |
76 | 75 | import org.apache.hadoop.hbase.client.Get; |
77 | 76 | import org.apache.hadoop.hbase.client.Hbck; |
78 | | -import org.apache.hadoop.hbase.client.ImmutableHRegionInfo; |
79 | 77 | import org.apache.hadoop.hbase.client.Put; |
80 | 78 | import org.apache.hadoop.hbase.client.RegionInfo; |
81 | 79 | import org.apache.hadoop.hbase.client.RegionInfoBuilder; |
@@ -2540,24 +2538,6 @@ public String checksumRows(final Table table) throws Exception { |
2540 | 2538 | Bytes.toBytes("xxx"), Bytes.toBytes("yyy"), Bytes.toBytes("zzz") |
2541 | 2539 | }; |
2542 | 2540 |
|
2543 | | - /** |
2544 | | - * Create rows in hbase:meta for regions of the specified table with the specified |
2545 | | - * start keys. The first startKey should be a 0 length byte array if you |
2546 | | - * want to form a proper range of regions. |
2547 | | - * @param conf |
2548 | | - * @param htd |
2549 | | - * @param startKeys |
2550 | | - * @return list of region info for regions added to meta |
2551 | | - * @throws IOException |
2552 | | - * @deprecated since 2.0 version and will be removed in 3.0 version. |
2553 | | - * use {@link #createMultiRegionsInMeta(Configuration, TableDescriptor, byte[][])} |
2554 | | - */ |
2555 | | - @Deprecated |
2556 | | - public List<HRegionInfo> createMultiRegionsInMeta(final Configuration conf, |
2557 | | - final HTableDescriptor htd, byte [][] startKeys) throws IOException { |
2558 | | - return createMultiRegionsInMeta(conf, (TableDescriptor) htd, startKeys) |
2559 | | - .stream().map(ImmutableHRegionInfo::new).collect(Collectors.toList()); |
2560 | | - } |
2561 | 2541 | /** |
2562 | 2542 | * Create rows in hbase:meta for regions of the specified table with the specified |
2563 | 2543 | * start keys. The first startKey should be a 0 length byte array if you |
|
0 commit comments