Sqoop导入失败,异常接口org.apache.hadoop.mapreduce.lib.db.DBWritable not org.apache.sqoop.mapreduce.DBWritable

时间:2015-09-24 11:59:06

标签: import mapreduce hive teradata sqoop

我必须将代码从teradata迁移到hive ..使用sqoop从Teradata导入数据时,它失败了    以下错误:

ERROR tool.ImportTool: Encountered IOException running import job: 
java.io.IOException: java.lang.RuntimeException: interface 
org.apache.hadoop.mapreduce.lib.db.DBWritable not 
org.apache.sqoop.mapreduce.DBWritable         
at com.cloudera.sqoop.teradata.imports.TeradataImportJob.configureInputFormat(TeradataImportJob.java:111)         
at org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:231)        
at com.cloudera.sqoop.teradata.TeradataManager.importTable(TeradataManager.java:86)         
at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:413)         
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:502)         
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 org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)         
at org.apache.sqoop.Sqoop.main(Sqoop.java:238)

有人遇到过这样的问题吗?

1 个答案:

答案 0 :(得分:0)

您可以查看您正在使用的teradata连接器的版本。尝试使用不同版本的连接器jar。我遇到了从MySQL表导入并更改为早期版本的MySQL连接器的问题,解决了我的问题。