[
https://issues.apache.org/jira/browse/HADOOP-8583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427309#comment-13427309
]
Daryn Sharp commented on HADOOP-8583:
-------------------------------------
I don't think the batch script should be attempting any expansion. {{FsShell}}
and other commands are going to expand both local and/or remote paths via
{{FileSystem}} so no pre-expansion is necessary. Any pre-expansion is going to
cause problems if option args contain glob chars, and it may also cause
unintended expansion of relative paths intended for a remote fs that happen to
match to local paths (ie. /tmp/*.txt will expand to local fs paths even if the
default fs is hdfs).
> Globbing is not correctly handled in a few cases on Windows
> -----------------------------------------------------------
>
> Key: HADOOP-8583
> URL: https://issues.apache.org/jira/browse/HADOOP-8583
> Project: Hadoop Common
> Issue Type: Bug
> Environment: Windows
> Reporter: Ramya Sunil
>
> Glob handling fails in a few cases on a Windows environment.
> For example:
> {noformat}
> c:\> hadoop dfs -ls /
> Found 2 items
> drwxrwxrwx - Administrator supergroup 0 2012-07-06 15:00 /tmp
> drwxr-xr-x - Administrator supergroup 0 2012-07-06 18:52 /user
> c:\> hadoop dfs -ls /tmpInvalid*
> Found 2 items
> drwxr-xr-x - Administrator supergroup 0 2012-07-10 18:50
> /user/Administrator/sortInputDir
> drwxr-xr-x - Administrator supergroup 0 2012-07-10 18:50
> /user/Administrator/sortOutputDir
> c:\> hadoop dfs -rmr /tmp/*
> Usage: java FsShell [-rmr [-skipTrash] <src> ]
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira