public class CopyMapper extends org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,CopyListingFileStatus,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>
| Modifier and Type | Class and Description |
|---|---|
static class |
CopyMapper.Counter
Hadoop counters for the DistCp CopyMapper.
|
| Constructor and Description |
|---|
CopyMapper() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanup(org.apache.hadoop.mapreduce.Mapper.Context context) |
void |
map(org.apache.hadoop.io.Text relPath,
CopyListingFileStatus sourceFileStatus,
org.apache.hadoop.mapreduce.Mapper.Context context)
Implementation of the Mapper::map().
|
void |
setup(org.apache.hadoop.mapreduce.Mapper.Context context)
Implementation of the Mapper::setup() method.
|
public void setup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
setup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,CopyListingFileStatus,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>context - Mapper's context.IOException - On IO failure.InterruptedException - If the job is interrupted.public void map(org.apache.hadoop.io.Text relPath,
CopyListingFileStatus sourceFileStatus,
org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
map in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,CopyListingFileStatus,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>relPath - The target path.sourceFileStatus - The source path.IOExceptionInterruptedExceptionprotected void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws IOException,
InterruptedException
cleanup in class org.apache.hadoop.mapreduce.Mapper<org.apache.hadoop.io.Text,CopyListingFileStatus,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text>IOExceptionInterruptedExceptionCopyright © 2008–2020 Apache Software Foundation. All rights reserved.