+1 vote
in Hadoop by
What are file permissions in HDFS and how HDFS check permissions for files or directory?

1 Answer

0 votes
by

What are file permissions in HDFS and how HDFS check permissions for files or directory?

For files and directories, Hadoop distributed file system (HDFS) implements a permissions model. For each file or directory, thus, we can manage permissions for a set of 3 distinct user classes:

The owner, group, and others.

The 3 different permissions for each user class: Read (r), write (w), and execute(x).

For files, the r permission is to read the file, and the w permission is to write to the file.

For directories, the r permission is to list the contents of the directory. The w permission is to create or delete the directory.

X permission is to access a child of the directory.

HDFS check permissions for files or directory:

We can also check the owner’s permissions if the username matches the owner of the directory.

If the group matches the directory’s group, then Hadoop tests the user’s group permissions.

Hadoop tests the “other” permission when the owner and the group names don’t match.

If none of the permissions checks succeed, the client’s request is denied.

Related questions

+1 vote
asked Jan 13, 2023 in Hadoop by john ganales
0 votes
asked Oct 28, 2020 in Hadoop by rahuljain1
...