[
https://issues.apache.org/jira/browse/HDFS-5033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723251#comment-13723251
]
Karthik Kambatla commented on HDFS-5033:
----------------------------------------
On Linux (POSIX), this is what I see:
{noformat}
kasha@keka:~/code/hadoop-trunk (trunk)$ ls -l testfile
-rw------- 1 root root 8 Jul 29 18:31 testfile
kasha@keka:~/code/hadoop-trunk (trunk)$ cat testfile
cat: testfile: Permission denied
{noformat}
When accessing local files/dirs through HDFS, the behavior should be the same
as when using local file system directly.
> Bad error message for fs -put/copyFromLocal if user doesn't have permissions
> to read the source
> -----------------------------------------------------------------------------------------------
>
> Key: HDFS-5033
> URL: https://issues.apache.org/jira/browse/HDFS-5033
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.3-alpha
> Reporter: Karthik Kambatla
> Priority: Minor
> Labels: noob
>
> fs -put/copyFromLocal shows a "No such file or directory" error when the user
> doesn't have permissions to read the source file/directory. Saying
> "Permission Denied" is more useful to the user.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira