Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

Solved Go to solution

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

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

Accepted Solutions
Highlighted

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

@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
Highlighted

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

@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

Don't have an account?
Coming from Hortonworks? Activate your account here