You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "David Tucker (JIRA)" <ji...@apache.org> on 2015/05/18 19:24:02 UTC

[jira] [Reopened] (HADOOP-11972) hdfs dfs -copyFromLocal reports File Not Found instead of Permission Denied.

     [ https://issues.apache.org/jira/browse/HADOOP-11972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Tucker reopened HADOOP-11972:
-----------------------------------

I believe `.` just references $PWD (fwiw, I use bash).

1. No, this env is NOT kerberized.
2. No, I do not believe so.
3. I'm not exactly sure what you mean (sorry, I'm still somewhat new to Hadoop), but `hdfs dfs` and `hadoop fs` seem to do the same thing:

[hrt_qa@hadoop-3168-2 ~]$ touch ./foo
[hrt_qa@hadoop-3168-2 ~]$ ls -l ./foo
-rw-r--r--. 1 hrt_qa users 0 May 18 10:16 ./foo
[hrt_qa@hadoop-3168-2 ~]$ pwd
/home/hrt_qa
[hrt_qa@hadoop-3168-2 ~]$ sudo su hbase
[hbase@hadoop-3168-2 hrt_qa]$ pwd
/home/hrt_qa
[hbase@hadoop-3168-2 hrt_qa]$ ls -l ./foo
ls: cannot access ./foo: Permission denied
[hbase@hadoop-3168-2 hrt_qa]$ hdfs dfs -copyFromLocal ./foo /tmp/foo
copyFromLocal: `./foo': No such file or directory
[hbase@hadoop-3168-2 hrt_qa]$ hadoop fs -copyFromLocal ./foo /tmp/foo
copyFromLocal: `./foo': No such file or directory

> hdfs dfs -copyFromLocal reports File Not Found instead of Permission Denied.
> ----------------------------------------------------------------------------
>
>                 Key: HADOOP-11972
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11972
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: tools
>    Affects Versions: 2.6.0
>         Environment: Linux hadoop-8309-2.west.isilon.com 2.6.32-504.16.2.el6.centos.plus.x86_64 #1 SMP Wed Apr 22 00:59:31 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: David Tucker
>
> userA creates a file in /home/userA with 700 permissions.
> userB tries to copy it to HDFS, and receives a "No such file or directory" instead of "Permission denied".
> [hrt_qa@hadoop-8309-2 ~]$ touch ./foo
> [hrt_qa@hadoop-8309-2 ~]$ ls -l ./foo
> -rw-r--r--. 1 hrt_qa users 0 May 14 16:09 ./foo
> [hrt_qa@hadoop-8309-2 ~]$ sudo su hbase
> [hbase@hadoop-8309-2 hrt_qa]$ ls -l ./foo
> ls: cannot access ./foo: Permission denied
> [hbase@hadoop-8309-2 hrt_qa]$ hdfs dfs -copyFromLocal ./foo /tmp/foo
> copyFromLocal: `./foo': No such file or directory



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)