i am trying to create a directory for the user tom in hdfs and i get the following error related to permission. Please let me know how to resolve this.
hdfs dfs -mkdir /user/tom /
mkdir: Permission denied: user=tom, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x
Kindly help.
Thanks, Ram
The HDFS approach to file permissions is very similar to the POSIX approach used in Linux systems. From the error message you are showing, only the user "hdfs" can create new entries in the /user directory. There are two exceptions to this in your situation:
For more details on this here is a link to the Apache HDFS Permissions Guide.