public class OfflineMetaRebuildTestCore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
protected org.apache.hadoop.hbase.client.Connection |
connection |
private static byte[] |
FAM |
protected org.apache.hadoop.hbase.client.Table |
htbl |
private static org.slf4j.Logger |
LOG |
protected static byte[][] |
splits |
protected org.apache.hadoop.hbase.TableName |
table |
private static String |
TABLE_BASE |
private static int |
tableIdx |
protected HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
OfflineMetaRebuildTestCore() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.hbase.client.RegionInfo |
createRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Table htbl,
byte[] startKey,
byte[] endKey) |
protected void |
deleteRegion(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.client.Table tbl,
byte[] startKey,
byte[] endKey) |
private void |
dumpMeta(org.apache.hadoop.hbase.HTableDescriptor htd) |
protected org.apache.hadoop.hbase.HTableDescriptor[] |
getTables(org.apache.hadoop.conf.Configuration configuration) |
private void |
populateTable(org.apache.hadoop.hbase.client.Table tbl) |
protected int |
scanMeta()
Dumps hbase:meta table info
|
void |
setUpBefore() |
private org.apache.hadoop.hbase.client.Table |
setupTable(org.apache.hadoop.hbase.TableName tablename)
Setup a clean table before we start mucking with it.
|
protected int |
tableRowCount(org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.hbase.TableName table)
Returns the number of rows in a given table.
|
void |
tearDownAfter() |
protected void |
wipeOutMeta() |
private static final org.slf4j.Logger LOG
protected HBaseTestingUtility TEST_UTIL
protected org.apache.hadoop.conf.Configuration conf
private static final byte[] FAM
protected org.apache.hadoop.hbase.client.Table htbl
protected static final byte[][] splits
private static final String TABLE_BASE
private static int tableIdx
protected org.apache.hadoop.hbase.TableName table
protected org.apache.hadoop.hbase.client.Connection connection
public OfflineMetaRebuildTestCore()
public void setUpBefore() throws Exception
Exceptionpublic void tearDownAfter() throws Exception
Exceptionprivate org.apache.hadoop.hbase.client.Table setupTable(org.apache.hadoop.hbase.TableName tablename) throws Exception
IOExceptionInterruptedExceptionorg.apache.zookeeper.KeeperExceptionExceptionprivate void dumpMeta(org.apache.hadoop.hbase.HTableDescriptor htd) throws IOException
IOExceptionprivate void populateTable(org.apache.hadoop.hbase.client.Table tbl) throws IOException
IOExceptionprotected void deleteRegion(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Table tbl, byte[] startKey, byte[] endKey) throws IOException
IOExceptionprotected org.apache.hadoop.hbase.client.RegionInfo createRegion(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Table htbl, byte[] startKey, byte[] endKey) throws IOException
IOExceptionprotected void wipeOutMeta() throws IOException
IOExceptionprotected int tableRowCount(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName table) throws IOException
IOExceptionprotected int scanMeta() throws IOException
IOExceptionprotected org.apache.hadoop.hbase.HTableDescriptor[] getTables(org.apache.hadoop.conf.Configuration configuration) throws IOException
IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.