[ 
https://issues.apache.org/jira/browse/HDFS-13751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16550586#comment-16550586
 ] 

Zsolt Venczel edited comment on HDFS-13751 at 7/20/18 9:53 AM:
---------------------------------------------------------------

Hi [~Avigyan]!

In this scenario: *hdfs dfs -du -h /** your shell extends * (asterisk wildcard) 
using your local file system directory values. 
 You most probably would like to use this hdfs dfs -du -h "/*" where the 
asterisk is being sent to and processed by hdfs.


was (Author: zvenczel):
Hi [~Avigyan]!

In this scenario: *hdfs dfs -du -h /** your shell extends * (asterisk wildcard) 
using your local file system directory values. 
 You most probably would like to use this *hdfs dfs -du -h "/*"* where the 
asterisk is being sent to and processed by hdfs.

> "hdfs dfs -du -h /*" shows local dir instead of HDFS dir
> --------------------------------------------------------
>
>                 Key: HDFS-13751
>                 URL: https://issues.apache.org/jira/browse/HDFS-13751
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs
>            Reporter: Avigyan
>            Priority: Major
>
> Hi,
> "hdfs dfs -du  -h / "command shows below result.
> 0        /app-logs
> 95.2 G   /apps
> 0        /ats
> 249.8 M  /hdp
> 0        /mapred
> 0        /mr-history
> 0        /ngs
> 18.2 M   /tmp
> 431.5 M  /user
>  
> Where as adding a * as "hdfs dfs -du  -h /* " shows below result.
> du: `/bin': No such file or directory
> du: `/boot': No such file or directory
> du: `/cgroup': No such file or directory
> du: `/cgroups_test': No such file or directory
> du: `/dev': No such file or directory
> du: `/etc': No such file or directory
> du: `/hadoop': No such file or directory
> du: `/home': No such file or directory
> du: `/lib': No such file or directory
> du: `/lib64': No such file or directory
> du: `/lost+found': No such file or directory
> du: `/media': No such file or directory
> du: `/mnt': No such file or directory
> du: `/ngs1': No such file or directory
> du: `/ngs2': No such file or directory
> du: `/ngs3': No such file or directory
> du: `/ngs4': No such file or directory
> du: `/ngs5': No such file or directory
> du: `/ngs6': No such file or directory
> du: `/ngs7': No such file or directory
> du: `/ngs8': No such file or directory
> du: `/opt': No such file or directory
> du: `/proc': No such file or directory
> du: `/root': No such file or directory
> du: `/sbin': No such file or directory
> du: `/selinux': No such file or directory
> du: `/srv': No such file or directory
> du: `/sys': No such file or directory
>  
> 0        /tmp/demo
> 0        /tmp/demo1
> 0        /tmp/entity-file-history
> 390.8 K  /tmp/examples
> 64.8 K   /tmp/examples.tar.gz
> 3.3 K    /tmp/ide20a8b61_date472418
> 3.3 K    /tmp/ide20a9661_date432418
> 3.3 K    /tmp/ide20a9961_date151318
> 3.3 K    /tmp/ide20aa061_date082418
> 17.7 M   /tmp/lib_20180406111044
>  
>  
> Why does adding "*" re-directs to local dir instead of HDFS dir.
>  
> Thanks



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to