SQOOP-3357: Change MainframeImportTool to refer to MainframeManager class directly
authorSzabolcs Vasas <vasas@apache.org>
Thu, 9 Aug 2018 15:13:02 +0000 (17:13 +0200)
committerSzabolcs Vasas <vasas@apache.org>
Thu, 9 Aug 2018 15:13:02 +0000 (17:13 +0200)
(Nguyen Truong via Szabolcs Vasas)

src/java/org/apache/sqoop/tool/MainframeImportTool.java
src/test/org/apache/sqoop/manager/TestMainframeManager.java

index 8883301..cdd9d6d 100644 (file)
@@ -23,6 +23,7 @@ import org.apache.commons.cli.OptionBuilder;
 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 class MainframeImportTool extends ImportTool {
 
     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));
index 97e48e8..c84f05f 100644 (file)
@@ -67,7 +67,7 @@ public class TestMainframeManager extends BaseSqoopTestCase {
     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 {