[
https://issues.apache.org/jira/browse/PIG-3183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13592762#comment-13592762
]
Cheolsoo Park commented on PIG-3183:
------------------------------------
[~prkommireddi], please correct me if I am wrong.
* As of now, these limitations can be easily worked around by using "fs"
commands (i.e. fs -rm * and fs -ls *).
* Given these commands are not documented (and thus not official), I would
encourage users to use "fs" commands.
I do not know why these commands are added in the first place, and we should
keep them for backward compatibility for a while. But eventually I would like
to get rid of them since they're duplicate IMO.
> rm or rmf commands should respect globbing/regex of path
> --------------------------------------------------------
>
> Key: PIG-3183
> URL: https://issues.apache.org/jira/browse/PIG-3183
> Project: Pig
> Issue Type: Improvement
> Components: grunt
> Affects Versions: 0.10.0
> Reporter: Prashant Kommireddi
> Assignee: Prashant Kommireddi
> Fix For: 0.12
>
> Attachments: PIG-3183.patch
>
>
> Hadoop fs commands support globbing during deleting files/dirs. Pig is not
> consistent with this behavior and seems like we could change rm/rmf commands
> to do the same.
> For eg:
> {code}
> localhost:pig pkommireddi$ ls -ld out*
> drwxr-xr-x 12 pkommireddi SF\domain users 408 Feb 13 01:09 out
> drwxr-xr-x 2 pkommireddi SF\domain users 68 Feb 13 01:16 out1
> drwxr-xr-x 2 pkommireddi SF\domain users 68 Feb 13 01:16 out2
> localhost:pig pkommireddi$ bin/pig -x local
> grunt> rmf out*
> grunt> quit
> localhost:pig pkommireddi$ ls -ld out*
> drwxr-xr-x 12 pkommireddi SF\domain users 408 Feb 13 01:09 out
> drwxr-xr-x 2 pkommireddi SF\domain users 68 Feb 13 01:16 out1
> drwxr-xr-x 2 pkommireddi SF\domain users 68 Feb 13 01:16 out2
> {code}
> Ideally, the user would expect "rmf out*" to delete all of the above dirs.
--
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