我併成立了Hadoop的Ubuntu的操作系統,遵循所有必要的步驟, 1.created的HDFS文件系統 2.Moved的文本文件輸入目錄 3.having特權訪問所有的目錄。 但運行簡單的字數例子時,我得到了Hadoop的 - 輸入路徑不存在
Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: file:/user/root/input
at org.apache.hadoop.mapreduce.lib.input.FileInputFormat.listStatus(FileInputFormat.java:224)
但是,輸入路徑是有效的,甚至可以能夠查看在Eclipse本身該路徑的文件,所以PLZ幫助是我錯了。
附截圖爲參考
在終端中,如果你執行'hadoop fs -ls/user/root/input',你會得到什麼?只是想驗證你的DFS是否可以通過那裏訪問,而不僅僅是eclipse。 – Quetzalcoatl
@Quetzalcoatl,結果:root @ master:/usr/local/hadoop-0.20.2# bin/hadoop fs -ls/user/root/input Found 2項目 -rw-r - r-- 1 root supergroup 405 2013-04-16 15:07/user/root/input/sigle -rw-r - r-- 1 root supergroup 302 2013-04-12 15:23 /user/root/input/single.txt Able連接 – Jeevanantham