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

Lei (Eddy) Xu updated HDFS-8322:
--------------------------------
    Attachment: HDFS-8322.000.patch

The patch checks the file system from every expended arguments. If the file 
system {{LocalFileSystem}}, a warning message is printed:

{code}
$ hdfs dfs -ls /
Warning: running "hadoop fs -ls" on local file system: /
Found 28 items
drwx------   - root wheel        170 2014-08-13 22:21 /.Spotlight-V100
d-wx-wx-wt   - root wheel         68 2014-08-15 23:21 /.Trashes
drwxr-xr-x   - root wheel        136 2014-10-13 12:30 /System
drwxr-xr-x   - root admin        204 2014-08-15 23:14 /Users
...
drwxrwxrwt   - root wheel        442 2015-05-04 16:26 /tmp
drwxr-xr-x   - root wheel        442 2015-02-03 12:27 /usr
drwxr-xr-x   - root wheel        884 2015-03-16 14:43 /var
{code}

> Display warning if hadoop fs -ls is showing the local filesystem
> ----------------------------------------------------------------
>
>                 Key: HDFS-8322
>                 URL: https://issues.apache.org/jira/browse/HDFS-8322
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: HDFS
>    Affects Versions: 2.7.0
>            Reporter: Lei (Eddy) Xu
>            Assignee: Lei (Eddy) Xu
>            Priority: Minor
>         Attachments: HDFS-8322.000.patch
>
>
> Using {{LocalFileSystem}} is rarely the intention of running {{hadoop fs 
> -ls}}.
> This JIRA proposes displaying a warning message if hadoop fs -ls is showing 
> the local filesystem or using default fs.  



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

Reply via email to