mapreduce error:input path does not exist 的解决方法

来源:互联网 发布:手机强刷软件 编辑:程序博客网 时间:2024/05/29 14:12

运行mapreduce 有时可能出现如下错误:

Exception in thread "main":Input path does not exist:file: *******

一种可能的原因是,程序员在main函数里自己手工设置了文件输入输出路径,而路径不准确。

例如,这样写是错的:PathIn=“/user/root/input”,

改为:PathIn="hdfs://localhost:9000/user/root/input"。

 

原创粉丝点击