Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

i get this error when i try to create a directory on hdfs:

avatar
New Member
Permission denied: user=admin, access=WRITE, inode="/user/d":hdfs:hdfs:drwxr-xr-x
1 ACCEPTED SOLUTION

avatar
Super Guru

@yadir Aguilar

This is a permission issue. You need to give permissions on the folder to admin user or create directory as hdfs user

su hdfs
hdfs dfs -mkdir /user/d

(or)

su hdfs
hdfs dfs -chown admin:admin /user/d

.

If you are using a kerberized environment, you should do a kinit with hdfs keytab and then run the above commands

kinit -kt /etc/security/keytabs/hdfs.headless.keytab {user-principal}

.

Please "Accept" the answer if this helps.

View solution in original post

1 REPLY 1

avatar
Super Guru

@yadir Aguilar

This is a permission issue. You need to give permissions on the folder to admin user or create directory as hdfs user

su hdfs
hdfs dfs -mkdir /user/d

(or)

su hdfs
hdfs dfs -chown admin:admin /user/d

.

If you are using a kerberized environment, you should do a kinit with hdfs keytab and then run the above commands

kinit -kt /etc/security/keytabs/hdfs.headless.keytab {user-principal}

.

Please "Accept" the answer if this helps.