如何限制hdfs中特定文件夹的访问权限。用户不应通过hue,hive或任何其他方式访问该文件夹。
答案 0 :(得分:1)
除了chmod
之外,您还可以使用ACL(访问控制列表)。有了这个,您可以设置文件,文件夹和用户的权限。
user::rw-
user:bruce:rwx #effective:r--
group::r-x #effective:r--
group:sales:rwx #effective:r--
mask::r--
other::r--
检查以下链接
https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html