使用./dse sqoop cql-import将数据从oracle迁移到cassandra时出错

时间:2015-10-16 01:15:42

标签: sqoop

使用DSE SQOOP将oracle数据迁移到cassandra时出现以下错误。

以下是命令和错误堆栈:

  

./ dse sqoop cql-import --table USERS --columns firstname   --cassandra-keyspace ORCL --cassandra-table USERS --connect jdbc:oracle:thin:scott / xxxx @ // us01u245:1521 / orcldb --cassandra-host   us01u246

     

错误01:04:27遇到运行导入作业的IOException:   java.io.IOException:无法读取表元数据           在com.datastax.bdp.sqoop.SqoopUtil.setCqlImportOptions(SqoopUtil.java:219)           在com.datastax.bdp.sqoop.CqlImportJob.configureOutputFormat(CqlImportJob.java:79)           在org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:240)           在com.datastax.bdp.sqoop.SqlManagerAdapter.importTable(SqlManagerAdapter.java:236)           在org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:497)           在org.apache.sqoop.tool.ImportTool.run(ImportTool.java:601)           在org.apache.sqoop.Sqoop.run(Sqoop.java:143)           在org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)           在org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)           在org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)           在org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)           在org.apache.sqoop.Sqoop.main(Sqoop.java:236)           在com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)引起:java.io.IOException:没有找到ORCL.USERS的表元数据           在com.datastax.bdp.sqoop.SqoopUtil.setCqlImportOptions(SqoopUtil.java:161)

1 个答案:

答案 0 :(得分:0)

表名称之前可能缺少Oracle模式名称。还要检查oracle表列和cassandra表列。它们区分大小写。