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 | Description |
|---|---|---|
static class |
CopyMapper.ChecksumComparison |
Indicates the checksum comparison result.
|
static class |
CopyMapper.Counter |
Hadoop counters for the DistCp CopyMapper.
|
| Constructor | Description |
|---|---|
CopyMapper() |
| Modifier and Type | Method | 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 java.io.IOException,
java.lang.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.java.io.IOException - On IO failure.java.lang.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 java.io.IOException,
java.lang.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.java.io.IOExceptionjava.lang.InterruptedExceptionprotected void cleanup(org.apache.hadoop.mapreduce.Mapper.Context context)
throws java.io.IOException,
java.lang.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>java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.