1

我正在使用 CDH 4.3.0,并且在我的边缘节点上使用 FUSE 安装了 hdfs。并且熔断器挂载点会自动将权限从 root:root 更改为 hdfs:hadoop。当我尝试通过 NFS 导出它时,它会向我抛出权限错误。谁能帮我解决这个问题。我在某处读到它仅适用于内核版本 2.6.27 及更高版本,而我的是 2.6.18 ......这是真的吗?

我的 mount 命令为 hdfs fuse 提供了以下输出: fuse on /hdfs-root/hdfs type fuse (rw,nosuid,nodev,allow_other,allow_other,default_permissions)

我的 /etc/exports 看起来像这样: /hdfs-root/hdfs/user *(fsid=0,rw,wdelay,anonuid=101,anongid=492,sync,insecure,no_subtree_check,no_root_squash)

我的 /etc/fstab 看起来像这样: hadoop-fuse-dfs#hdfs:: /hdfs-root/hdfs fuse allow_other,usetrash,rw 2 0 :/hdfs-root/hdfs/user /hdfsbkp nfs rw

第一行是 FUSE,第二行是通过 NFS 导出挂载的 HDFS。当我运行 mount -a 时,我收到以下错误...

“挂载::/hdfs-root/hdfs/user 失败,服务器给出的原因:权限被拒绝”

另外,我尝试将 FUSE mount 的所有权更改为 root:root,但它也不允许我这样做...顺便说一下,我们使用 kerberos 作为身份验证方法来访问 hadoop...

任何帮助都非常感谢!

4

0 回答 0