public class DistCp extends Configured implements Tool
构造器和说明 |
---|
DistCp(Configuration configuration,
DistCpOptions inputOptions)
Public Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected Path |
createInputFileListing(Job job)
Create input listing by invoking an appropriate copy listing
implementation.
|
Job |
execute()
Implements the core-execution.
|
protected Path |
getFileListingPath()
Get default name of the copy listing file.
|
static void |
main(String[] argv)
Main function of the DistCp program.
|
int |
run(String[] argv)
Implementation of Tool::run().
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public static final Random rand
public DistCp(Configuration configuration, DistCpOptions inputOptions) throws Exception
inputOptions
- Options (indicating source-paths, target-location.)configuration
- The Hadoop configuration against which the Copy-mapper must run.Exception,
- on failure.Exception
public int run(String[] argv)
public Job execute() throws Exception
Exception,
- on failure.Exception
protected Path createInputFileListing(Job job) throws IOException
job
- - Handle to jobIOException
- - If anyprotected Path getFileListingPath() throws IOException
IOException
- - Exception if anypublic static void main(String[] argv)
argv
- Command-line arguments sent to DistCp.Copyright © 2009 The Apache Software Foundation