Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Incompatible change, Reviewed
-
Description
When the user doesn't have access permission to the local directory, the "hadoop fs -put" command prints a confusing error message "No such file or directory".
$ whoami systest $ cd /home/systest $ ls -ld . drwx------. 4 systest systest 4096 Jan 13 14:21 . $ mkdir d1 $ sudo -u hdfs hadoop fs -put d1 /tmp put: `d1': No such file or directory
It will be more informative if the message is:
put: d1 (Permission denied)
If the source is a local file, the error message is ok:
put: f1 (Permission denied)
Attachments
Attachments
Issue Links
- breaks
-
YARN-5313 TestLogsCLI.testFetchApplictionLogsAsAnotherUser fails in trunk
- Resolved
- depends upon
-
HADOOP-13191 FileSystem#listStatus should not return null
- Resolved
-
HADOOP-7352 FileSystem#listStatus should throw IOE upon access error
- Resolved