Class TableSnapshotInputFormatTestBase
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormatTestBase
- Direct Known Subclasses:
TestTableSnapshotInputFormat
,TestTableSnapshotInputFormat
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final byte[][]
protected org.apache.hadoop.fs.FileSystem
private static final org.slf4j.Logger
protected static final int
protected org.apache.hadoop.fs.Path
protected final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static void
createTableAndSnapshot
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, int numRegions) protected abstract byte[]
protected abstract byte[]
void
private static void
setupConf
(org.apache.hadoop.conf.Configuration conf) void
void
abstract void
testRestoreSnapshotDoesNotCreateBackRefLinksInit
(org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tmpTableDir) protected void
testWithMapReduce
(HBaseTestingUtility util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) void
protected abstract void
testWithMapReduceImpl
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) void
void
protected abstract void
testWithMockedMapReduce
(HBaseTestingUtility util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean setLocalityEnabledTo) void
void
protected static void
verifyRowFromMap
(org.apache.hadoop.hbase.io.ImmutableBytesWritable key, org.apache.hadoop.hbase.client.Result result)
-
Field Details
-
LOG
-
UTIL
-
NUM_REGION_SERVERS
- See Also:
-
FAMILIES
-
fs
-
rootDir
-
-
Constructor Details
-
TableSnapshotInputFormatTestBase
public TableSnapshotInputFormatTestBase()
-
-
Method Details
-
setupCluster
- Throws:
Exception
-
tearDownCluster
- Throws:
Exception
-
setupConf
-
testWithMockedMapReduce
protected abstract void testWithMockedMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean setLocalityEnabledTo) throws Exception - Throws:
Exception
-
testWithMapReduceImpl
protected abstract void testWithMapReduceImpl(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) throws Exception - Throws:
Exception
-
getStartRow
-
getEndRow
-
testWithMockedMapReduceSingleRegion
- Throws:
Exception
-
testWithMockedMapReduceMultiRegion
- Throws:
Exception
-
testWithMapReduceSingleRegion
- Throws:
Exception
-
testWithMapReduceMultiRegion
- Throws:
Exception
-
testWithMapReduceAndOfflineHBaseMultiRegion
- Throws:
Exception
-
testRestoreSnapshotDoesNotCreateBackRefLinks
- Throws:
Exception
-
testRestoreSnapshotDoesNotCreateBackRefLinksInit
public abstract void testRestoreSnapshotDoesNotCreateBackRefLinksInit(org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tmpTableDir) throws Exception - Throws:
Exception
-
testWithMapReduce
protected void testWithMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) throws Exception - Throws:
Exception
-
verifyRowFromMap
protected static void verifyRowFromMap(org.apache.hadoop.hbase.io.ImmutableBytesWritable key, org.apache.hadoop.hbase.client.Result result) throws IOException - Throws:
IOException
-
createTableAndSnapshot
protected static void createTableAndSnapshot(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, int numRegions) throws Exception - Throws:
Exception
-