Cloudera: Permission Denied error on hadoop dfs -put


1 Answer(s)


Hi Mehjabeen
This is a permission issue. Let me explain.
The /user/ directory is owned by "hdfs" - hdfs is a superuser

You are logging in as user cloudera - so you will have permissions only to create or write files in the folder /user/cloudera

So a simple fix to your problem would be to copy the files into the /user/cloudera folder as shown below

hadoop dfs -put first.csv /user/cloudera

You can then do an ls to see if the file is copied

hadoop dfs -ls /user/cloudera

Let me know if this works
Thanks
Omair