运行mapreduce 有时可能出现如下错误:
Exception in thread "main":Input path does not exist:file: *******
一种可能的原因是,程序员在main函数里自己手工设置了文件输入输出路径,而路径不准确。
例如,这样写是错的:PathIn=“/user/root/input”,
改为:PathIn="hdfs://localhost:9000/user/root/input"。
运行mapreduce 有时可能出现如下错误:
Exception in thread "main":Input path does not exist:file: *******
一种可能的原因是,程序员在main函数里自己手工设置了文件输入输出路径,而路径不准确。
例如,这样写是错的:PathIn=“/user/root/input”,
改为:PathIn="hdfs://localhost:9000/user/root/input"。