org.apache.hadoop.tools
Class OptionsParser
java.lang.Object
org.apache.hadoop.tools.OptionsParser
public class OptionsParser
- extends Object
The OptionsParser parses out the command-line options passed to DistCp,
and interprets those specific to DistCp, to create an Options object.
Method Summary |
static DistCpOptions |
parse(String[] args)
The parse method parses the command-line options, and creates
a corresponding Options object. |
static void |
usage()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OptionsParser
public OptionsParser()
parse
public static DistCpOptions parse(String[] args)
throws IllegalArgumentException
- The parse method parses the command-line options, and creates
a corresponding Options object.
- Parameters:
args:
- Command-line arguments (excluding the options consumed
by the GenericOptionsParser).
- Returns:
- The Options object, corresponding to the specified command-line.
- Throws:
IllegalArgumentException:
- Thrown if the parse fails.
IllegalArgumentException
usage
public static void usage()
Copyright © 2014 InMobi. All rights reserved.