public class DistCp
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier and Type | Field and Description |
|---|---|
static Random |
rand |
static int |
SHUTDOWN_HOOK_PRIORITY
Priority of the ResourceManager shutdown hook.
|
| Constructor and Description |
|---|
DistCp(org.apache.hadoop.conf.Configuration configuration,
DistCpOptions inputOptions)
Public Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.mapreduce.Job |
execute()
Implements the core-execution.
|
static void |
main(String[] argv)
Main function of the DistCp program.
|
int |
run(String[] argv)
Implementation of Tool::run().
|
public static final int SHUTDOWN_HOOK_PRIORITY
public static final Random rand
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 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.Exceptionpublic static void main(String[] argv)
argv - Command-line arguments sent to DistCp.Copyright © 2014 Apache Software Foundation. All Rights Reserved.