public class DistCp extends Configured implements 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(Configuration configuration,
DistCpOptions inputOptions)
Public Constructor.
|
Modifier and Type | Method and Description |
---|---|
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().
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public static final int SHUTDOWN_HOOK_PRIORITY
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
public static void main(String[] argv)
argv
- Command-line arguments sent to DistCp.Copyright © 2013 Apache Software Foundation. All rights reserved.