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 "John Zhuge (JIRA)" <ji...@apache.org> on 2016/01/23 07:32:39 UTC

[jira] [Updated] (HADOOP-12718) Confusing error message by fs -put local dir without permission

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

John Zhuge updated HADOOP-12718:
--------------------------------
    Description: 
When the user doesn't have access permission to the local directory or file, the "hadoop fs -put" command prints a confusing error message "No such file or directory".

{noformat}
$ 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
{noformat}

It will be more informative if the message is:
{noformat}
put: cannot access `d1': Permission denied
{noformat}

  was:
When the user doesn't have access permission to the local directory or file, the "hadoop fs -put" command prints an confusing error message "No such file or directory".

{noformat}
$ 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
{noformat}

It will be more informative if the message is:
{noformat}
put: cannot access `d1': Permission denied
{noformat}


> Confusing error message by fs -put local dir without permission
> ---------------------------------------------------------------
>
>                 Key: HADOOP-12718
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12718
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: John Zhuge
>            Assignee: John Zhuge
>            Priority: Minor
>
> When the user doesn't have access permission to the local directory or file, the "hadoop fs -put" command prints a confusing error message "No such file or directory".
> {noformat}
> $ 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
> {noformat}
> It will be more informative if the message is:
> {noformat}
> put: cannot access `d1': Permission denied
> {noformat}



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