Details
Description
Using without the --direct option works, but uses single inserts (not okay on NZ.)
Sqoop call:
import org.apache.sqoop.Sqoop;
...
Sqoop.runTool(new String[]
, jobConf);
Stdout:
12/08/14 17:18:36 INFO manager.SqlManager: Using default fetchSize of 1000
12/08/14 17:18:36 INFO tool.CodeGenTool: Beginning code generation
12/08/14 17:18:36 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM CAMPAIGN_ANALYSIS_60 AS t WHERE 1=0
12/08/14 17:18:36 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM CAMPAIGN_ANALYSIS_60 AS t WHERE 1=0
12/08/14 17:18:36 INFO orm.CompilationManager: HADOOP_HOME is /usr/lib/hadoop
Note: /tmp/sqoop-hduser/compile/1dbc102fd64aaaafb1f81df148a59ead/CAMPAIGN_ANALYSIS_60.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
12/08/14 17:18:46 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-hduser/compile/1dbc102fd64aaaafb1f81df148a59ead/CAMPAIGN_ANALYSIS_60.jar
Exception in thread "main" java.lang.NoSuchMethodError: com.cloudera.sqoop.manager.ExportJobContext.setConnManager(Lcom/cloudera/sqoop/manager/ConnManager;)V
at com.cloudera.sqoop.netezza.DirectNetezzaManager.exportTable(DirectNetezzaManager.java:67)
at org.apache.sqoop.tool.ExportTool.exportTable(ExportTool.java:78)
at org.apache.sqoop.tool.ExportTool.run(ExportTool.java:97)
at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
at blah.CampaignAnalysisTable.load(CampaignAnalysisTable.java:141)
at blah.CampaignAnalysisDriver.run(CampaignAnalysisDriver.java:78)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84)
at blah.CampaignAnalysisDriver.main(CampaignAnalysisDriver.java:36)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:208)