Access control for Hadoop

Source: Internet
Author: User
Tags file permissions port number hadoop fs
HDFS supports permission control but is weak in support. The design of HDFs is based on POSIX model, which supports read and write execution control by user, user group and other users. Under the Linux command line, you can use the following command to modify the permissions of the file, the file owner, and the group to which the file belongs:
Hadoop fs–chmod (Modify file owner, file belongs to group, other user's read, write, execute permissions)
Haddop Fs–chown (modify file owner)
Hadoop fs–chgrp (modify file group)
Different users can access specific files by using different Linux accounts. Users who launch Hadoop HDFS systems are super users and can do anything.
Note that HDFS itself does not provide a user name, a user group creation, and when the client invokes the Hadoop file Operations Command, Hadoop recognizes the user name and user group of the process executing the command, and then uses this user name and group to check file permissions.
The user name =linux the ' whoami ' in the command, and the group name equals ' bash-c groups '.
According to the above principle, the file system permissions management of HDFs is weak. If the user knows the HDFs name node address and port number, after installing the HDFs client, use the same username as name node to gain access to all files.

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.