从sqoop导入到hdfs错误

时间:2017-07-06 05:15:01

标签: hadoop sqoop

我在从SQOOP进口到HDFS时遇到错误

INFO mapreduce.JobSubmitter:清理暂存区域文件:/tmp/hadoop-root/mapred/staging/root226175073/.staging/job_local226175073_0001 线程" main"中的例外情况java.lang.IncompatibleClassChangeError:找到接口org.apache.hadoop.mapreduce.JobContext,但是类是预期的         at org.apache.sqoop.config.ConfigurationHelper.getJobNumMaps(ConfigurationHelper.java:65)         在com.cloudera.sqoop.config.ConfigurationHelper.getJobNumMaps(ConfigurationHelper.java:36)         在org.apache.sqoop.mapreduce.db.DataDrivenDBInputFormat.getSplits(DataDrivenDBInputFormat.java:125)         在org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:302)         在org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:319)         在org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:197)         在org.apache.hadoop.mapreduce.Job $ 10.run(Job.java:1297)         在org.apache.hadoop.mapreduce.Job $ 10.run(Job.java:1294)         at java.security.AccessController.doPrivileged(Native Method)         在javax.security.auth.Subject.doAs(Subject.java:415)         在org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1692)         在org.apache.hadoop.mapreduce.Job.submit(Job.java:1294)         在org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1315)         在org.apache.sqoop.mapreduce.ImportJobBase.doSubmitJob(ImportJobBase.java:196)         在org.apache.sqoop.mapreduce.ImportJobBase.runJob(ImportJobBase.java:169)         在org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:266)         在org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:673)         在org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:118)         在org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:497)         在org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)         在org.apache.sqoop.Sqoop.run(Sqoop.java:143)         在org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)         在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)

0 个答案:

没有答案