我正在尝试用单节点hadoop集群运行一个示例程序。运行示例程序(jar文件)时出现异常。
我配置了 core-site.xml
作为localhost:9000. 我把我的文本文件在hdfs正确,它可以被查看执行 hadoop dfs -ls /tmp
命令。
谢谢。
13/11/27 05:47:52 info mapred.localjobrunner:Map任务执行器完成。13/11/27 05:47:52警告mapred.localjobrunner:job\u local617545423\u 0001 java.lang.exception:java.io.filenotfoundexception:/tmp/jetty\u 0\u 0\u 0\u 50090\u secondary\u y6aanv(是一个目录),位于org.apache.hadoop.mapred.localjobrunner$job.run(localjobrunner)。java:354)原因:java.io.filenotfoundexception:/tmp/jetty\u 0\u 0\u 0\u 50090\u secondary\u y6aanv(是在java.io.fileinputstream.open(本机方法)在java.io.fileinputstream.(fileinputstream。java:138)位于org.apache.hadoop.fs.rawlocalfilesystem$trackingfileinputstream.(rawlocalfilesystem)。java:71)在org.apache.hadoop.fs.rawlocalfilesystem$localfsfileinputstream。java:107)在org.apache.hadoop.fs.rawlocalfilesystem.open(rawlocalfilesystem)。java:182)在org.apache.hadoop.fs.checksumfisystem$checksumfsinputchecker.(checksumfisystem。java:126)在org.apache.hadoop.fs.checksumfilesystem.open(checksumfilesystem。java:283)在org.apache.hadoop.fs.filesystem.open(filesystem。java:427)在org.apache.hadoop.mapreduce.lib.input.linerecordreader.initialize(linerecordreader。java:75)在org.apache.hadoop.mapreduce.lib.input.keyvaluelinerecordreader.initialize(keyvaluelinerecordreader。java:65)在org.apache.hadoop.mapred.maptask$newtrackingrecordreader.initialize(maptask。java:521)在org.apache.hadoop.mapred.maptask.runnewmapper(maptask。java:763)在org.apache.hadoop.mapred.maptask.run(maptask。java:364)在org.apache.hadoop.mapred.localjobrunner$job$maptaskrunnable.run(localjobrunner。java:223)在java.util.concurrent.executors$runnableadapter.call(executors。java:471)在java.util.concurrent.futuretask$sync.innerrun(futuretask。java:334)在java.util.concurrent.futuretask.run(futuretask。java:166)位于java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor。java:1145)在java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor。java:615)在java.lang.thread.run(线程。java:724) 13/11/27 05:47:52 info mapred.jobclient:Map35%减少0%
1条答案
按热度按时间vxbzzdmp1#
即使在linux文件系统中,目录也不能位于作业的输入路径目录中。
以上
tmp/Jetty_0_0_0_0_50090_secondary__y6aanv (Is a directory) at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:354) Caused by: java.io.FileNotFoundException: /tmp/Jetty_0_0_0_0_50090_secondary__y6aanv
Jetty_0_0_0_0_50090_secondary__y6aanv
是输入路径目录中的目录。我改变了输入路径,现在可以工作了。