Using ACLs to manage HDFs permissions in Hadoop

Source: Internet
Author: User
Tags hdfs dfs

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.