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

Steve Loughran commented on HADOOP-15635:
-----------------------------------------

once you have the FS, you can use {{S3AFileSystem.hasMetadataStore()}} as the 
probe, so it can just fail with an error "FS doesn't exist".

 If we were clever, we'd set the config up to disable bucket creation, so that 
a call of set-capacity wouldn't create the bucket if it wasn't there (too much 
overlap of interests, IMO

> s3guard set-capacity command to fail fast if bucket is unguarded
> ----------------------------------------------------------------
>
>                 Key: HADOOP-15635
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15635
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.2.0
>            Reporter: Steve Loughran
>            Assignee: Gabor Bota
>            Priority: Minor
>
> If you try to do {{hadoop s3guard set-capacity s3a://landsat-pds}}, or any 
> other bucket which exists but doesn't have s3guard enabled, you get a stack 
> trace reporting that the ddb table doesn't exist.
> the command should check for the bucket being guarded and fail on that



--
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