mirror of
https://github.com/apache/sqoop.git
synced 2025-05-02 20:39:58 +08:00
SQOOP-3357: Change MainframeImportTool to refer to MainframeManager class directly
(Nguyen Truong via Szabolcs Vasas)
This commit is contained in:
parent
b56b1767d2
commit
c3d916ab20
@ -23,6 +23,7 @@
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.apache.hadoop.util.ToolRunner;
|
||||
import org.apache.sqoop.manager.MainframeManager;
|
||||
import org.apache.sqoop.mapreduce.mainframe.MainframeConfiguration;
|
||||
|
||||
import org.apache.sqoop.SqoopOptions;
|
||||
@ -148,7 +149,7 @@ public void applyOptions(CommandLine in, SqoopOptions out)
|
||||
|
||||
if (!in.hasOption(CONN_MANAGER_CLASS_NAME)) {
|
||||
// set default ConnManager
|
||||
out.setConnManagerClassName("org.apache.sqoop.manager.MainframeManager");
|
||||
out.setConnManagerClassName(MainframeManager.class.getName());
|
||||
}
|
||||
if (in.hasOption(DS_ARG)) {
|
||||
out.setMainframeInputDatasetName(in.getOptionValue(DS_ARG));
|
||||
|
@ -67,7 +67,7 @@ public void setUp() {
|
||||
opts = getSqoopOptions(conf);
|
||||
opts.setConnectString("dummy.server");
|
||||
opts.setTableName("dummy.pds");
|
||||
opts.setConnManagerClassName("org.apache.sqoop.manager.MainframeManager");
|
||||
opts.setConnManagerClassName(MainframeManager.class.getName());
|
||||
context = new ImportJobContext(getTableName(), null, opts, null);
|
||||
ConnFactory f = new ConnFactory(conf);
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user