|
||||||||||
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
public abstract static class CopyFiles.CopyFilesMapper
Base-class for all mappers for distcp
Constructor Summary | |
---|---|
CopyFiles.CopyFilesMapper()
|
Method Summary | |
---|---|
abstract void |
cleanup(Configuration conf,
JobConf jobConf,
String srcPath,
String destPath)
Interface to cleanup *distcp* specific resources |
int |
getMapCount(int initialEstimate,
long totalBytes,
JobClient client)
Calculate how many maps to run. |
static Path |
makeRelative(Path root,
Path absPath)
Make a path relative with respect to a root path. |
abstract void |
setup(Configuration conf,
JobConf jobConf,
String[] srcPaths,
String destPath,
boolean ignoreReadFailures)
Interface to initialize *distcp* specific map tasks. |
Methods inherited from class org.apache.hadoop.mapred.MapReduceBase |
---|
close, configure |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyFiles.CopyFilesMapper()
Method Detail |
---|
public abstract void setup(Configuration conf, JobConf jobConf, String[] srcPaths, String destPath, boolean ignoreReadFailures) throws IOException
conf
- : The dfs/mapred configuration.jobConf
- : The handle to the jobConf object to be initialized.srcPaths
- : The source paths.destPath
- : The destination path.ignoreReadFailures
- : Ignore read failures?
IOException
public abstract void cleanup(Configuration conf, JobConf jobConf, String srcPath, String destPath) throws IOException
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 static Path makeRelative(Path root, Path absPath)
public int getMapCount(int initialEstimate, long totalBytes, JobClient client) throws IOException
initialEstimate
- Initial guess at number of maps (e.g. count of
files).totalBytes
- Count of total bytes for job (If not known, pass -1).client
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |