Sqoop导入失败抛出异常

时间:2018-05-16 18:36:13

标签: mysql hadoop mysql-connector sqoop

Sqoop导入失败在线程“main”中抛出异常

  

java.lang.NoSuchMethodError:   org.apache.hadoop.util.StringUtils.toLowerCase(Ljava /郎/字符串;)Ljava /郎/字符串;

     

线程“main”中的异常java.lang.NoSuchMethodError:   org.apache.hadoop.util.StringUtils.toLowerCase(Ljava /郎/字符串;)Ljava /郎/字符串;           at org.apache.hadoop.mapreduce.v2.util.MRApps.addToClasspathIfNotJar(MRApps.java:306)           at org.apache.hadoop.mapreduce.v2.util.MRApps.setClasspath(MRApps.java:271)           at org.apache.hadoop.mapred.YARNRunner.createApplicationSubmissionContext(YARNRunner.java:454)           在org.apache.hadoop.mapred.YARNRunner.submitJob(YARNRunner.java:285)           在org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:240)           在org.apache.hadoop.mapreduce.Job $ 10.run(Job.java:1290)           在org.apache.hadoop.mapreduce.Job $ 10.run(Job.java:1287)           at java.security.AccessController.doPrivileged(Native Method)           在javax.security.auth.Subject.doAs(Subject.java:422)           at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1642)           在org.apache.hadoop.mapreduce.Job.submit(Job.java:1287)           在org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1308)           在org.apache.sqoop.mapreduce.ImportJobBase.doSubmitJob(ImportJobBase.java:203)           在org.apache.sqoop.mapreduce.ImportJobBase.runJob(ImportJobBase.java:176)           在org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:273)           在org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:692)           在org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:127)           在org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:512)           在org.apache.sqoop.tool.ImportTool.run(ImportTool.java:620)           在org.apache.sqoop.Sqoop.run(Sqoop.java:147)           在org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)           在org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)           在org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)           在org.apache.sqoop.Sqoop.runTool(Sqoop.java:243)           在org.apache.sqoop.Sqoop.main(Sqoop.java:252)

0 个答案:

没有答案