pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prashant Kommireddi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-3183) rm or rmf commands should respect globbing/regex of path
Date Wed, 27 Feb 2013 01:49:11 GMT

    [ https://issues.apache.org/jira/browse/PIG-3183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13587865#comment-13587865
] 

Prashant Kommireddi commented on PIG-3183:
------------------------------------------

[~jcoveney] or others have any comments?
                
> 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

Mime
View raw message