Class HFileOutputFormat2TestBase
java.lang.Object
org.apache.hadoop.hbase.mapreduce.HFileOutputFormat2TestBase
- Direct Known Subclasses:
MRIncrementalLoadTestBase
,TestHFileOutputFormat2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class
Simple mapper that makes KeyValue output.protected static class
Simple mapper that makes Put output. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final int
protected static final byte[][]
static final byte[]
protected static final int
protected static final org.apache.hadoop.hbase.TableName[]
protected static HBaseTestingUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static byte[]
generateData
(Random r, int length) This method takes some time and is done inline uploading data.protected static byte[][]
generateRandomSplitKeys
(int numKeys) protected static byte[][]
generateRandomStartKeys
(int numKeys) protected static void
runIncrementalPELoad
(org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.hbase.mapreduce.HFileOutputFormat2.TableInfo> tableInfo, org.apache.hadoop.fs.Path outDir, boolean putSortReducer) protected static void
setupRandomGeneratorMapper
(org.apache.hadoop.mapreduce.Job job, boolean putSortReducer)
-
Field Details
-
ROWSPERSPLIT
- See Also:
-
DEFAULT_VALUE_LENGTH
- See Also:
-
FAMILY_NAME
-
FAMILIES
-
TABLE_NAMES
-
UTIL
-
-
Constructor Details
-
HFileOutputFormat2TestBase
public HFileOutputFormat2TestBase()
-
-
Method Details
-
setupRandomGeneratorMapper
protected static void setupRandomGeneratorMapper(org.apache.hadoop.mapreduce.Job job, boolean putSortReducer) -
generateRandomStartKeys
-
generateData
This method takes some time and is done inline uploading data. For example, doing the mapfile test, generation of the key and value consumes about 30% of CPU time.- Returns:
- Generated random value to insert into a table cell.
-
generateRandomSplitKeys
-
runIncrementalPELoad
protected static void runIncrementalPELoad(org.apache.hadoop.conf.Configuration conf, List<org.apache.hadoop.hbase.mapreduce.HFileOutputFormat2.TableInfo> tableInfo, org.apache.hadoop.fs.Path outDir, boolean putSortReducer) throws IOException, InterruptedException, ClassNotFoundException
-