Reply
New Contributor
Posts: 2
Registered: ‎02-21-2014

Permission denied while placing input file in HDFS

I have installed CDH4 and trying cloudera word count example .

I am getting permission denied while placing input file to HDFS.

 

[cloudera@localhost ~]$ hadoop fs -put   /tmp/Hive-Dataset   /user/cloudera/Example1/input
put: Permission denied: user=cloudera, access=WRITE, inode="/user/cloudera/Example1/input":hdfs:cloudera:drwxr-xr-x

Can help me in solving it,

Highlighted
Posts: 416
Topics: 51
Kudos: 85
Solutions: 49
Registered: ‎06-26-2013

Re: Permission denied while placing input file in HDFS

sudo -u hdfs hadoop fs -chown -R cloudera /user/cloudera

 

That command should set the permissions correctly for that directory so that you can put your files there.  Currently the directory you are trying to access is owned by the "hdfs" user.

Announcements