问答详情
源自:3-3 mapreduce实现矩阵相乘(2)

MR1 run的时候报错了,查看fs上该input文件已经存在

java.io.IOException: No input paths specified in job

at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus(FileInputFormat.java:238)

at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.getSplits(FileInputFormat.java:385)

at org.apache.hadoop.mapreduce.JobSubmitter.writeNewSplits(JobSubmitter.java:597)

at org.apache.hadoop.mapreduce.JobSubmitter.writeSplits(JobSubmitter.java:614)

at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:492)

at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1296)

at org.apache.hadoop.mapreduce.Job$10.run(Job.java:1293)

at java.security.AccessController.doPrivileged(Native Method)

at javax.security.auth.Subject.doAs(Subject.java:422)

at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1628)

at org.apache.hadoop.mapreduce.Job.submit(Job.java:1293)

at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:1314)

at com.lt.hadoop.step1.MR1.run(MR1.java:53)

at com.lt.hadoop.step1.MR1.main(MR1.java:69)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)


提问者:慕函数2082699 2017-10-08 02:59

个回答

  • grandfisher
    2019-06-07 16:06:29

    请问有什么好办法?

  • 0LukeYang0
    2018-12-14 23:58:28

    我的也是报这个错,版本是hadoop1.2.1。路径绝对没问题,一个字母一个字母对过

  • 慕函数658770
    2018-07-15 23:10:05

    你好,你的问题解决了吗,我也遇到了一样的问题,向请教一下,感觉路径并没有写错啊

  • 一汪清泉lily
    2017-10-11 19:33:58

     No input paths specified in job,可能是代码中输入文件的路径写错了。你查看一下