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. 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值