Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

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

avatar
Explorer
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.