Package org.apache.hadoop.hbase.mapred
Class TestTableMapReduceUtil
java.lang.Object
org.apache.hadoop.hbase.mapred.TestTableMapReduceUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static Stringprivate static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String>static final HBaseClassTestRuleprivate static final byte[]private static final byte[]private static final org.slf4j.Loggerprivate static Stringprivate static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String>private static org.apache.hadoop.hbase.client.Tableprivate static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<String,org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String>> private static final Stringprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvoidbefore()static voidstatic org.apache.hadoop.hbase.client.TablecreateAndFillTable(org.apache.hadoop.hbase.TableName tableName) private static voidcreatePutCommand(org.apache.hadoop.hbase.client.Table table) voidvoidvoidvoidCheck what the given number of reduce tasks for the given job configuration does not exceed the number of regions for the given table.
-
Field Details
-
CLASS_RULE
-
LOG
-
presidentsTable
-
TABLE_NAME
- See Also:
-
COLUMN_FAMILY
-
COLUMN_QUALIFIER
-
presidentsRowKeys
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> presidentsRowKeys -
presidentNames
-
actorsRowKeys
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> actorsRowKeys -
actorNames
-
PRESIDENT_PATTERN
-
ACTOR_PATTERN
-
relation
-
UTIL
-
-
Constructor Details
-
TestTableMapReduceUtil
public TestTableMapReduceUtil()
-
-
Method Details
-
beforeClass
- Throws:
Exception
-
afterClass
- Throws:
Exception
-
before
- Throws:
IOException
-
createAndFillTable
public static org.apache.hadoop.hbase.client.Table createAndFillTable(org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-
createPutCommand
- Throws:
IOException
-
shouldNumberOfReduceTaskNotExceedNumberOfRegionsForGivenTable
Check what the given number of reduce tasks for the given job configuration does not exceed the number of regions for the given table.- Throws:
IOException
-
shouldNumberOfMapTaskNotExceedNumberOfRegionsForGivenTable
- Throws:
IOException
-
shoudBeValidMapReduceEvaluation
- Throws:
Exception
-
shoudBeValidMapReduceWithPartitionerEvaluation
- Throws:
IOException
-