|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.MapReduceBase org.apache.hadoop.util.CopyFiles.CopyFilesMapper org.apache.hadoop.util.CopyFiles.FSCopyFilesMapper
public static class CopyFiles.FSCopyFilesMapper
DFSCopyFilesMapper: The mapper for copying files from the DFS.
Constructor Summary | |
---|---|
CopyFiles.FSCopyFilesMapper()
|
Method Summary | |
---|---|
void |
cleanup(Configuration conf,
JobConf jobConf,
String srcPath,
String destPath)
Interface to cleanup *distcp* specific resources |
void |
close()
Default implementation that does nothing. |
void |
configure(JobConf job)
Mapper configuration. |
void |
map(WritableComparable key,
Writable value,
OutputCollector out,
Reporter reporter)
Map method. |
void |
setup(Configuration conf,
JobConf jobConf,
String[] srcPaths,
String destPath,
boolean ignoreReadFailures)
Initialize DFSCopyFileMapper specific job-configuration. |
Methods inherited from class org.apache.hadoop.util.CopyFiles.CopyFilesMapper |
---|
getMapCount, makeRelative |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyFiles.FSCopyFilesMapper()
Method Detail |
---|
public void setup(Configuration conf, JobConf jobConf, String[] srcPaths, String destPath, boolean ignoreReadFailures) throws IOException
setup
in class CopyFiles.CopyFilesMapper
conf
- : The dfs/mapred configuration.jobConf
- : The handle to the jobConf object to be initialized.srcPaths
- : The source URIs.destPath
- : The destination URI.ignoreReadFailures
- : Ignore read failures?
IOException
public void cleanup(Configuration conf, JobConf jobConf, String srcPath, String destPath) throws IOException
CopyFiles.CopyFilesMapper
cleanup
in class CopyFiles.CopyFilesMapper
conf
- : The dfs/mapred configuration.jobConf
- : The handle to the jobConf object to be initialized.srcPath
- : The source uri.destPath
- : The destination uri.
IOException
public void configure(JobConf job)
configure
in interface JobConfigurable
configure
in class MapReduceBase
job
- the configurationpublic void map(WritableComparable key, Writable value, OutputCollector out, Reporter reporter) throws IOException
map
in interface Mapper
key
- source file namevalue
- not-used.out
- not-used.reporter
-
IOException
public void close()
MapReduceBase
close
in interface Closeable
close
in class MapReduceBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |