hadoop-vfs(fuse_dfs)線上問題定位

問題現象:

hadoop-vfs掛載目錄顯示亂碼,且list目錄時出現input/output error.

-rw-r--r--  1 ***** *****   13366 2010-02-19 08:55 ********.txt 
drwxr-xr-x  3 ***** ****    4096 2011-06-07 15:32 logs 
d?????????  ? ?     ?          ?                ? mnt 
-rw-r--r--  1 ***** *****     101 2010-02-19 08:55 ********.txt 
-rw-r--r--  1 ***** *****    1366 2010-02-19 08:55 *******.txt 


解決方法:

./fuse_dfs_wrapper.sh dfs://192.168.100.201:54310 /home/data -o rw,nonempty,allow_other,usetrash,default_permissions -d

改成

./fuse_dfs_wrapper.sh dfs://internal-node0:54310 /home/data -o rw,nonempty,allow_other,usetrash,default_permissions -d


參考文檔:

http://lucene.472066.n3.nabble.com/error-2-No-such-file-or-directory-when-mounting-fuse-dfs-td3034762.html

FUSE-DFS is extremely picky about hostnames.  All of the following should have the exact same string: 

- Output of "hostname" on the namenode. 
- fs.default.name 
- Primary reverse-DNS of the namenode's IP. 

"localhost" is almost certainly not what you want. 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章