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

Wei-Chiu Chuang commented on HADOOP-13656:
------------------------------------------

Thanks for the patch [~shwetayakkali]

{code}
"[-immediate] [-fs]";
{code}
Please update the usage string so that users are aware that -fs takes a 
parameter.

{code}
Usage: `hadoop fs -expunge [-immediate] [-fs [<path>] ]`
{code}
This isn't 100% correct. The path is require if {{-fs}} is specified.

{code}
getConf().set("fs.defaultFS", fsArgument);
{code}
Please use {{CommonConfigurationKeysPublic.FS_DEFAULT_NAME_KEY}} instead.

> fs -expunge to take a filesystem
> --------------------------------
>
>                 Key: HADOOP-13656
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13656
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs
>    Affects Versions: 2.7.3
>            Reporter: Steve Loughran
>            Assignee: Shweta
>            Priority: Minor
>         Attachments: HADOOP-13656.001.patch
>
>
> you can't pass in a filesystem or object store to {{fs -expunge}; you have to 
> change the default fs
> {code}
> hadoop fs -expunge -D fs.defaultFS=s3a://bucket/
> {code}
> If the command took an optional filesystem argument, it'd be better at 
> cleaning up object stores. Given that even deleted object store data runs up 
> bills, this could be appreciated.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to