|
||||||||||
| 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
DistCp is the main driver-class for DistCpV2. For command-line use, DistCp::main() orchestrates the parsing of command-line parameters and the launch of the DistCp job. For programmatic use, a DistCp object can be constructed by specifying options (in a DistCpOptions object), and DistCp::execute() may be used to launch the copy-job. DistCp may alternatively be sub-classed to fine-tune behaviour.
| Field Summary | |
|---|---|
static Random |
rand
|
static int |
SHUTDOWN_HOOK_PRIORITY
Priority of the ResourceManager shutdown hook. |
| Constructor Summary | |
|---|---|
DistCp()
To be used with the ToolRunner. |
|
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. |
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 |
|---|
public static final int SHUTDOWN_HOOK_PRIORITY
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.
Exceptionpublic DistCp()
| 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.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 | |||||||||