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
Exception
public void tearDownAfter() throws Exception
Exception
private org.apache.hadoop.hbase.client.Table setupTable(org.apache.hadoop.hbase.TableName tablename) throws Exception
IOException
InterruptedException
org.apache.zookeeper.KeeperException
Exception
private void dumpMeta(org.apache.hadoop.hbase.HTableDescriptor htd) throws IOException
IOException
private void populateTable(org.apache.hadoop.hbase.client.Table tbl) throws IOException
IOException
protected void deleteRegion(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Table tbl, byte[] startKey, byte[] endKey) throws IOException
IOException
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) throws IOException
IOException
protected void wipeOutMeta() throws IOException
IOException
protected int tableRowCount(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.TableName table) throws IOException
IOException
protected int scanMeta() throws IOException
IOException
protected org.apache.hadoop.hbase.HTableDescriptor[] getTables(org.apache.hadoop.conf.Configuration configuration) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.