Class TestTableSnapshotInputFormat
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormatTestBase
org.apache.hadoop.hbase.mapreduce.TestTableSnapshotInputFormat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final byte[]
private static final byte[]
static final HBaseClassTestRule
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final byte[]
private static final byte[]
Fields inherited from class org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormatTestBase
FAMILIES, fs, NUM_REGION_SERVERS, rootDir, UTIL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
doTestWithMapReduce
(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) protected byte[]
protected byte[]
private org.apache.hadoop.hbase.client.Scan
serializeAndReturn
(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Scan s) Serializes and deserializes the given scan in the same manner that TableSnapshotInputFormat does.void
void
void
void
void
testRestoreSnapshotDoesNotCreateBackRefLinksInit
(org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tmpTableDir) void
void
protected 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
testWithMockedMapReduce
(HBaseTestingUtility util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean setLocalityEnabledTo) void
void
void
private void
verifyWithMockedMapReduce
(org.apache.hadoop.mapreduce.Job job, int numRegions, int expectedNumSplits, byte[] startRow, byte[] stopRow) Methods inherited from class org.apache.hadoop.hbase.mapreduce.TableSnapshotInputFormatTestBase
createTableAndSnapshot, setupCluster, tearDownCluster, testRestoreSnapshotDoesNotCreateBackRefLinks, testWithMapReduce, testWithMapReduceAndOfflineHBaseMultiRegion, testWithMapReduceMultiRegion, testWithMapReduceSingleRegion, testWithMockedMapReduceMultiRegion, testWithMockedMapReduceSingleRegion, verifyRowFromMap
-
Field Details
-
CLASS_RULE
-
LOG
-
bbb
-
yyy
-
bbc
-
yya
-
name
-
-
Constructor Details
-
TestTableSnapshotInputFormat
public TestTableSnapshotInputFormat()
-
-
Method Details
-
getStartRow
- Specified by:
getStartRow
in classTableSnapshotInputFormatTestBase
-
getEndRow
- Specified by:
getEndRow
in classTableSnapshotInputFormatTestBase
-
testGetBestLocations
- Throws:
IOException
-
testInitTableSnapshotMapperJobConfig
- Throws:
Exception
-
testWithMockedMapReduceSingleRegionByRegionLocation
- Throws:
Exception
-
testRestoreSnapshotDoesNotCreateBackRefLinksInit
public void testRestoreSnapshotDoesNotCreateBackRefLinksInit(org.apache.hadoop.hbase.TableName tableName, String snapshotName, org.apache.hadoop.fs.Path tmpTableDir) throws Exception - Specified by:
testRestoreSnapshotDoesNotCreateBackRefLinksInit
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
testWithMockedMapReduce
public void testWithMockedMapReduce(HBaseTestingUtility util, String snapshotName, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean setLocalityEnabledTo) throws Exception - Specified by:
testWithMockedMapReduce
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
testWithMockedMapReduceWithSplitsPerRegion
- Throws:
Exception
-
testWithMockedMapReduceWithNoStartRowStopRow
- Throws:
Exception
-
testScanLimit
- Throws:
Exception
-
testNoDuplicateResultsWhenSplitting
- Throws:
Exception
-
testScannerReadTypeConfiguration
- Throws:
IOException
-
serializeAndReturn
private org.apache.hadoop.hbase.client.Scan serializeAndReturn(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hbase.client.Scan s) throws IOException Serializes and deserializes the given scan in the same manner that TableSnapshotInputFormat does.- Throws:
IOException
-
verifyWithMockedMapReduce
private void verifyWithMockedMapReduce(org.apache.hadoop.mapreduce.Job job, int numRegions, int expectedNumSplits, byte[] startRow, byte[] stopRow) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
testWithMapReduceImpl
protected 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 - Specified by:
testWithMapReduceImpl
in classTableSnapshotInputFormatTestBase
- Throws:
Exception
-
doTestWithMapReduce
public static void doTestWithMapReduce(HBaseTestingUtility util, org.apache.hadoop.hbase.TableName tableName, String snapshotName, byte[] startRow, byte[] endRow, org.apache.hadoop.fs.Path tableDir, int numRegions, int numSplitsPerRegion, int expectedNumSplits, boolean shutdownCluster) throws Exception - Throws:
Exception
-
testWithMapReduceMultipleMappersPerRegion
- Throws:
Exception
-
testCleanRestoreDir
- Throws:
Exception
-