Not able to copy a file from Local to HDFS - Write permission denied



Not able to copy / moveToLocal and got the below error. Tried HDFS commands and Ambari also.

Permission denied: user=kaarthickr, access=WRITE, inode="/cloudera.txt":hdfs:hdfs:drwxrwxr-x
at org.apache.hadoop.hdfs.server.namenode.FSPermissionChecker.check(


Please share the command which you are trying.


hdfs dfs -moveFromLocal cloudera.txt /



Try below command:
hdfs dfs -moveFromLocal cloudera.txt /user/kaarthickr

Here, /user/kaarthickr is your hdfs path.


Thanks. It has worked