【问题标题】:Accessing a hdfs folder访问 hdfs 文件夹
【发布时间】:2016-01-05 03:54:55
【问题描述】:

如何限制对 hdfs 中特定文件夹的访问。用户不应通过 hue、hive 或任何其他方式访问该文件夹。

【问题讨论】:

  • 使用chmod 命令限制权限。那应该可行。/
  • 除此之外还有其他方法吗?

标签: hadoop hive hdfs bigdata


【解决方案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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-04
    • 1970-01-01
    相关资源
    最近更新 更多