Class TestRoundRobinTableInputFormat
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestRoundRobinTableInputFormat
Basic test of
RoundRobinTableInputFormat
; i.e. RRTIF.-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
Private comparator copied from private JobSubmmiter Hadoop class... -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final String[]
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertLengthDescending
(List<org.apache.hadoop.mapreduce.InputSplit> list) Assert that lengths are descending.private void
checkRetainsBooleanValue
(org.apache.hadoop.mapreduce.JobContext jobContext, org.apache.hadoop.hbase.mapreduce.RoundRobinTableInputFormat rrtif, boolean b) private List<org.apache.hadoop.mapreduce.InputSplit>
Returns Splits made out ofKEYS
.void
Test that configure/unconfigure set and properly undo the HBASE_REGIONSIZECALCULATOR_ENABLE configuration.private void
testDistribution
(List<org.apache.hadoop.mapreduce.InputSplit> list) void
Test default behavior.
-
Field Details
-
CLASS_RULE
-
SERVERS_COUNT
- See Also:
-
KEYS
-
-
Constructor Details
-
TestRoundRobinTableInputFormat
public TestRoundRobinTableInputFormat()
-
-
Method Details
-
testRoundRobinSplit
Test default behavior.- Throws:
IOException
InterruptedException
-
createSplits
Returns Splits made out ofKEYS
. Splits are for five Servers. Length is ZERO! -
testDistribution
private void testDistribution(List<org.apache.hadoop.mapreduce.InputSplit> list) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
assertLengthDescending
private void assertLengthDescending(List<org.apache.hadoop.mapreduce.InputSplit> list) throws IOException, InterruptedException Assert that lengths are descending. RRTIF writes lengths in descending order so any subsequent sort using dump SplitComparator as is done in JobSubmitter up in Hadoop keeps our RRTIF ordering.- Throws:
IOException
InterruptedException
-
testConfigureUnconfigure
Test that configure/unconfigure set and properly undo the HBASE_REGIONSIZECALCULATOR_ENABLE configuration. -
checkRetainsBooleanValue
private void checkRetainsBooleanValue(org.apache.hadoop.mapreduce.JobContext jobContext, org.apache.hadoop.hbase.mapreduce.RoundRobinTableInputFormat rrtif, boolean b)
-