In Hadoop, ACLs are used to manage HDFs permissions, and ACL permissions are added to the rights control in hadoop2.4, like Linux ACL permissions
1, modify the HDFS permission configuration
<property>
<name>dfs.permissions</name>
<value>false</value>
</ property>
<property>
<name>dfs.namenode.acls.enabled</name>
<value>true </value>
</property>
2. Permission Configuration
Assigning permissions to the owning master and group
Sudo-u HDFs HDFs dfs-chmod-r 771/user/hive/warehouse sudo-u hdfs hdfs dfs-chown-r hive:hive/user/hive/warehous
E
Permissions to assign ACLs
Sudo-u HDFs HDFs dfs-setfacl-r-M group:bdc:rwx/hive/default sudo-u HDFs hdfs
dfs-setfacl-r-M group:bdc:rwx/h Ive/warehouse
sudo-u HDFs hdfs dfs-setfacl-r-M User:kwu:rwx/hive/warehouse
3, user and group settings
Important:ensure that all users and groups resolve on the Namenode for ACLs to work as expected.
This is the official website, that is, the node in the Namenode to configure the relationship between users and groups
View the group to which the user belongs
Groups Kwu