[
https://issues.apache.org/jira/browse/HADOOP-12108?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ravi Prakash resolved HADOOP-12108.
-----------------------------------
Resolution: Invalid
Thanks Aman! Steve is right. You do need to use quotes when there is already a
file on the local file system which would match the wildcard
> Erroneous behavior of use of wildcard character ( * ) in ls command of hdfs
> ----------------------------------------------------------------------------
>
> Key: HADOOP-12108
> URL: https://issues.apache.org/jira/browse/HADOOP-12108
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Aman Goyal
> Priority: Critical
>
> If you have following directories in your LOCAL file system
> /data/hadoop/sample/00/contents1.txt
> /data/hadoop/sample/01/contents2.txt
> and following directories in hdfs :
> /data/hadoop/sample/00/contents1.txt
> /data/hadoop/sample/01/contents2.txt
> /data/hadoop/sample/02/contents3.txt
> suppose you run the following hdfs ls command:
> hdfs dfs -ls -R /data/hadoop/sample/*
> the paths that are printed have a reference to local paths, and only 00 & 01
> directories get listed.
> this happens only when wildcard ( * ) character is used in input paths.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)