Hallo ich bekomme den Fehler unten beim Versuch, Daten von Oracle zu HDFS mit sqoop zu importieren. Befehl genutzt-Datenimport von Oracle zu hdfs mit sqoop
sqoop import --connect jdbc:oracle:thin:sys/[email protected]:1521:orcl --username tgthr -P --table transactions --columns "tid,accounid,amount" --m 1
Fehler Log-
[email protected]:~$ sqoop import --connect jdbc:oracle:thin:sys/[email protected]:1521:orcl --username tgthr -P --table transactions --columns "tid,accounid,amount" --m 1
Enter password:
16/06/27 05:34:51 INFO tool.CodeGenTool: Beginning code generation
16/06/27 05:34:53 ERROR manager.SqlManager: Error executing statement: java.sql.SQLRecoverableException: Io exception: The Network Adapter could not establish the connection
16/06/27 05:34:53 ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.NullPointerException
java.lang.NullPointerException
at com.cloudera.sqoop.orm.ClassWriter.generate(ClassWriter.java:935)
at com.cloudera.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:82)
at com.cloudera.sqoop.tool.ImportTool.importTable(ImportTool.java:337)
at com.cloudera.sqoop.tool.ImportTool.run(ImportTool.java:423)
at com.cloudera.sqoop.Sqoop.run(Sqoop.java:144)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
at com.cloudera.sqoop.Sqoop.runSqoop(Sqoop.java:180)
at com.cloudera.sqoop.Sqoop.runTool(Sqoop.java:218)
at com.cloudera.sqoop.Sqoop.main(Sqoop.java:228)
[email protected]:~$