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.

mkdir: Permission denied - Error in HDPCD AWS Instance

Highlighted

mkdir: Permission denied - Error in HDPCD AWS Instance

New Contributor

Hi,

while i was trying to solve one of the task from HDPCD practice exam, its throwing following error when i am trying to create a folder under /User folder. anybody had this issue?

mkdir: Permission denied: user=horton, access=WRITE, inode="/user":hdfs:hdfs:drwxr-xr-x

1 REPLY 1

Re: mkdir: Permission denied - Error in HDPCD AWS Instance

Mentor

@Pruthvi Allam

That looks a permission issue as the inode /user belongs to hdfs

As the root user switch to hdfs user and run the below

$ hdfs dfs -mkdir /user/horton

Change permissions,assuming horton is part of group hdfs

$ hdfs dfs -chown horton:hdfs  /user/horton

Retry and revert

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