HDFS access denied error


3 Answer(s)


use command with sudo option
sudo -u hdfs hadoop fs -mkdir /wordcount

Did you trying changing the permissions of the folder via chmod?
give chmod 777

hi Sugandha and Others,

Do not start using the "chmod 777" without understanding the error here. In genera,l, using "chmod 777" is dangerous :)

The problem is with your command that you are executing. You are trying the create "wordcount" under root ("/"). That is the whole problem

The proper command is this
hadoop fs -mkdir /user/cloudera/wordcount (/user/cloudera/ is the hdfs location)

Thanks