Support Questions
Find answers, ask questions, and share your expertise

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

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

Explorer

Hello,

when I try to run a sqoop import command I am getting the following error:

 

 

Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): 
Permission denied: user=butmah, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x

 

 

how to solve this ?

 

tthanks

4 REPLIES 4

Re: Permission denied: user=ABC, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x

Champion
Can you fire the below command
sudo -u hdfs hadoop fs -mkdir /user/butmah
sudo -u hdfs hadoop fs -chown butmah /user/butmah

Re: Permission denied: user=ABC, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x

New Contributor

This works thanks alot

 

Re: Permission denied: user=ABC, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x

Champion
Please mark and give us kudos so it encourages the fellow users to
contribute more !

Re: Permission denied: user=ABC, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x

Champion
The rational behind the permission denied ERROR
The /user/ directory is owned by "hdfs" with 755 permissions. As a result only hdfs can write to that directory.