public class CreateFileMapper extends WorkloadMapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
Configuration options available:
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateFileMapper.CREATEFILECOUNTERS
Custom
Counter definitions. |
| Modifier and Type | Field and Description |
|---|---|
static String |
DURATION_MIN_KEY |
static String |
FILE_PARENT_PATH_DEFAULT |
static String |
FILE_PARENT_PATH_KEY |
static String |
NUM_MAPPERS_KEY |
static boolean |
SHOULD_DELETE_DEFAULT |
static String |
SHOULD_DELETE_KEY |
| Constructor and Description |
|---|
CreateFileMapper() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getConfigDescriptions()
Get a list of the description of each configuration that this mapper
accepts.
|
String |
getDescription()
Get the description of the behavior of this mapper.
|
void |
map(org.apache.hadoop.io.NullWritable key,
org.apache.hadoop.io.NullWritable value,
org.apache.hadoop.mapreduce.Mapper.Context mapperContext) |
boolean |
verifyConfigurations(org.apache.hadoop.conf.Configuration confToVerify)
Verify that the provided configuration contains all configurations required
by this mapper.
|
configureJobpublic static final String NUM_MAPPERS_KEY
public static final String DURATION_MIN_KEY
public static final String FILE_PARENT_PATH_KEY
public static final String FILE_PARENT_PATH_DEFAULT
public static final String SHOULD_DELETE_KEY
public static final boolean SHOULD_DELETE_DEFAULT
public String getDescription()
WorkloadMappergetDescription in class WorkloadMapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>public List<String> getConfigDescriptions()
WorkloadMappergetConfigDescriptions in class WorkloadMapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>public boolean verifyConfigurations(org.apache.hadoop.conf.Configuration confToVerify)
WorkloadMapperverifyConfigurations in class WorkloadMapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>confToVerify - configuration.public void map(org.apache.hadoop.io.NullWritable key,
org.apache.hadoop.io.NullWritable value,
org.apache.hadoop.mapreduce.Mapper.Context mapperContext)
throws IOException,
InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>IOExceptionInterruptedExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.