Package org.apache.hadoop.hbase.mapred
Class TestTableMapReduceUtil
java.lang.Object
org.apache.hadoop.hbase.mapred.TestTableMapReduceUtil
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static String
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String>
static final HBaseClassTestRule
private static final byte[]
private static final byte[]
private static final org.slf4j.Logger
private static String
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String>
private static org.apache.hadoop.hbase.client.Table
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<String,
org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String>> private static final String
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
void
before()
static void
static org.apache.hadoop.hbase.client.Table
createAndFillTable
(org.apache.hadoop.hbase.TableName tableName) private static void
createPutCommand
(org.apache.hadoop.hbase.client.Table table) void
void
void
void
Check 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
-