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

hdfs

#1

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(FSPermissionChecker.java:319)


#2

Please share the command which you are trying.


#3

hdfs dfs -moveFromLocal cloudera.txt /


#4

@kaarthick.r.1982

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

Here, /user/kaarthickr is your hdfs path.


#5

Thanks. It has worked


#6