Support Questions

Find answers, ask questions, and share your expertise

mkdir: Permission denied - Error in HDPCD AWS Instance

New Contributor


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



@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

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.