访问hdfs文件夹

1szpjjfi  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(408)

如何限制对hdfs中特定文件夹的访问。用户不应通过色调、配置单元或任何其他方式访问该文件夹。

c8ib6hqw

c8ib6hqw1#

除了 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

相关问题