hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aman Goyal (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-12108) Erroneous behavior of use of wildcard character ( * ) in ls command of hdfs
Date Mon, 22 Jun 2015 12:52:00 GMT
Aman Goyal created HADOOP-12108:
-----------------------------------

             Summary: 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)

Mime
View raw message