Stephen Fritz created HDFS-4822: ----------------------------------- Summary: Globs do not match special characters in filenames Key: HDFS-4822 URL: https://issues.apache.org/jira/browse/HDFS-4822 Project: Hadoop HDFS Issue Type: Bug Reporter: Stephen Fritz
Create a file with a special character in the filename, a-la -bash-4.1$ hadoop fs -mkdir /user/hdfs -bash-4.1$ hadoop fs -touchz /user/hdfs/dupfile^M -bash-4.1$ hadoop fs -ls /user/hdfs Found 1 items -rw-r--r-- 3 hdfs supergroup 0 2013-05-14 07:13 /user/hdfs/dupfile Try to delete it using wildcards * or ? fail: -bash-4.1$ hadoop fs -rm /user/hdfs/dupfile* rm: `/user/hdfs/dupfile*': No such file or directory -bash-4.1$ hadoop fs -ls /user/hdfs Found 2 items drwx------ - hdfs supergroup 0 2013-05-14 07:20 /user/hdfs/.Trash -rw-r--r-- 3 hdfs supergroup 0 2013-05-14 07:13 /user/hdfs/dupfile -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira