debug mapreduce代码

a0zr77ik  于 2021-06-04  发布在  Hadoop
关注(0)|答案(0)|浏览(215)

我们正在尝试调试一个简单的mapreduce代码,其中使用

DistributedCache.addCacheFile(new URI("hdfs://lmaster.hdp.com:8020/input/StopWords.txt"), job.getConfiguration());

DistributedCache.addCacheFile(new URI("hdfs://lmaster.hdp.com:8020/input/paintings"), job.getConfiguration());

hdfs的路径
当我使用eclipse运行它时,我得到以下错误

2013-12-05 14:34:24,522 INFO  [Thread-12] mapred.LocalJobRunner (LocalJobRunner.java:run(397)) - Map task executor complete.
2013-12-05 14:34:24,566 WARN  [Thread-12] mapred.LocalJobRunner (LocalJobRunner.java:run(482)) - job_local206806739_0001

***java.lang.Exception: java.io.FileNotFoundException: file:/tmp/hadoop-cdh-hadoop/mapred/local/1386234263343/StopWords.txt (No such file or directory)

    at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:403)
Caused by: java.io.FileNotFoundException: file:/tmp/hadoop-cdh-hadoop/mapred/local***/1386234263343/StopWords.txt (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:137)
    at java.io.FileInputStream.<init>(FileInputStream.java:96)
    at java.io.FileReader.<init>(FileReader.java:58)
    at com.context.ContextMapper.populateList(ContextMapper.java:117)

我无法继续或调试代码。请帮助。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题