|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.tools.DistCp
public class DistCp
| Field Summary | |
|---|---|
protected DistCpOptions |
inputOptions
|
protected org.apache.hadoop.fs.Path |
metaFolder
|
static Random |
rand
|
| Constructor Summary | |
|---|---|
DistCp(org.apache.hadoop.conf.Configuration configuration,
DistCpOptions inputOptions)
Public Constructor. |
|
| Method Summary | |
|---|---|
protected org.apache.hadoop.fs.Path |
createInputFileListing(org.apache.hadoop.mapreduce.Job job)
Create input listing by invoking an appropriate copy listing implementation. |
protected org.apache.hadoop.mapreduce.Job |
createJob()
Create Job object for submitting it, with all the configuration |
org.apache.hadoop.mapreduce.Job |
execute()
Implements the core-execution. |
protected org.apache.hadoop.fs.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(). |
| Methods inherited from class org.apache.hadoop.conf.Configured |
|---|
getConf, setConf |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.hadoop.conf.Configurable |
|---|
getConf, setConf |
| Field Detail |
|---|
protected DistCpOptions inputOptions
protected org.apache.hadoop.fs.Path metaFolder
public static final Random rand
| Constructor Detail |
|---|
public DistCp(org.apache.hadoop.conf.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| Method Detail |
|---|
public int run(String[] argv)
run in interface org.apache.hadoop.util.Toolargv: - List of arguments passed to DistCp, from the ToolRunner.
public org.apache.hadoop.mapreduce.Job execute()
throws Exception
Exception, - on failure.
Exception
protected org.apache.hadoop.mapreduce.Job createJob()
throws IOException
IOException - - Exception if any
protected org.apache.hadoop.fs.Path createInputFileListing(org.apache.hadoop.mapreduce.Job job)
throws IOException
job - - Handle to job
IOException - - If any
protected org.apache.hadoop.fs.Path getFileListingPath()
throws IOException
IOException - - Exception if anypublic static void main(String[] argv)
argv: - Command-line arguments sent to DistCp.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||