|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
com.cloudera.sqoop.Sqoop
public class Sqoop
Main entry-point for Sqoop Usage: hadoop jar (this_jar_name) com.cloudera.sqoop.Sqoop (options) See the SqoopOptions class for options.
Field Summary | |
---|---|
static org.apache.commons.logging.Log |
LOG
|
static java.lang.String |
SQOOP_RETHROW_PROPERTY
If this System property is set, always throw an exception, do not just exit with status 1. |
Constructor Summary | |
---|---|
Sqoop(SqoopTool tool)
Creates a new instance of Sqoop set to run the supplied SqoopTool with the default configuration. |
|
Sqoop(SqoopTool tool,
org.apache.hadoop.conf.Configuration conf)
Creates a new instance of Sqoop set to run the supplied SqoopTool with the provided configuration. |
|
Sqoop(SqoopTool tool,
org.apache.hadoop.conf.Configuration conf,
SqoopOptions opts)
Creates a new instance of Sqoop set to run the supplied SqoopTool with the provided configuration and SqoopOptions. |
Method Summary | |
---|---|
SqoopOptions |
getOptions()
|
SqoopTool |
getTool()
|
static void |
main(java.lang.String[] args)
|
int |
run(java.lang.String[] args)
|
static int |
runSqoop(Sqoop sqoop,
java.lang.String[] args)
Given a Sqoop object and a set of arguments to deliver to its embedded SqoopTool, run the tool, wrapping the call to ToolRunner. |
static int |
runTool(java.lang.String[] args)
Entry-point that parses the correct SqoopTool to use from the args, but does not call System.exit() as main() will. |
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 org.apache.commons.logging.Log LOG
public static final java.lang.String SQOOP_RETHROW_PROPERTY
Constructor Detail |
---|
public Sqoop(SqoopTool tool)
tool
- the SqoopTool to run in the main body of Sqoop.public Sqoop(SqoopTool tool, org.apache.hadoop.conf.Configuration conf)
tool
- the SqoopTool to run in the main body of Sqoop.conf
- the Configuration to use (e.g., from ToolRunner).public Sqoop(SqoopTool tool, org.apache.hadoop.conf.Configuration conf, SqoopOptions opts)
tool
- the SqoopTool to run in the main body of Sqoop.conf
- the Configuration to use (e.g., from ToolRunner).opts
- the SqoopOptions which control the tool's parameters.Method Detail |
---|
public SqoopOptions getOptions()
public SqoopTool getTool()
public int run(java.lang.String[] args)
run
in interface org.apache.hadoop.util.Tool
public static int runSqoop(Sqoop sqoop, java.lang.String[] args)
public static int runTool(java.lang.String[] args)
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |