Package org.apache.hadoop.fs.s3a.s3guard
Class S3GuardTool.BucketInfo
java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.fs.s3a.s3guard.S3GuardTool
org.apache.hadoop.fs.s3a.s3guard.S3GuardTool.BucketInfo
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
- Enclosing class:
- S3GuardTool
Get info about a bucket and its S3Guard integration status.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.fs.s3a.s3guard.S3GuardTool
S3GuardTool.BucketInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringOutput when the client cannot get the location of a bucket.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.apache.hadoop.fs.s3a.s3guard.S3GuardTool
AGE_OPTIONS_USAGE, DAYS_FLAG, HOURS_FLAG, META_FLAG, MINUTES_FLAG, SECONDS_FLAG, VERBOSE, WRONG_FILESYSTEM -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.fs.s3a.s3guard.S3GuardTool
addAgeOptions, badState, bindFilesystem, close, dumpFileSystemStatistics, errorln, errorln, exit, exitException, getCommandFormat, getFilesystem, initS3AFileSystem, invalidArgs, main, notFound, parseArgs, parseArgsWithErrorReporting, println, resetBindings, run, run, s3guardUnsupported, toUri, userAbortedMethods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Field Details
-
BUCKET_INFO
- See Also:
-
NAME
- See Also:
-
GUARDED_FLAG
- See Also:
-
UNGUARDED_FLAG
- See Also:
-
ENCRYPTION_FLAG
- See Also:
-
MAGIC_FLAG
- See Also:
-
MARKERS_FLAG
- See Also:
-
MARKERS_AWARE
- See Also:
-
FIPS_FLAG
- See Also:
-
PURPOSE
- See Also:
-
LOCATION_UNKNOWN
Output when the client cannot get the location of a bucket.- See Also:
-
IS_MARKER_AWARE
- See Also:
-
CAPABILITY_FORMAT
- See Also:
-
-
Constructor Details
-
BucketInfo
public BucketInfo(org.apache.hadoop.conf.Configuration conf)
-
-
Method Details
-
getName
Description copied from class:S3GuardToolReturn sub-command name.- Specified by:
getNamein classS3GuardTool- Returns:
- sub-command name.
-
getUsage
- Specified by:
getUsagein classS3GuardTool
-
run
Description copied from class:S3GuardToolRun the tool, capturing the output (if the tool supports that). As well as returning an exit code, the implementations can choose to throw an instance ofExitUtil.ExitExceptionwith their exit code set to the desired exit value. The exit code of such an exception is used for the tool's exit code, and the stack trace only logged at debug.- Specified by:
runin classS3GuardTool- Parameters:
args- argument listout- output stream- Returns:
- the exit code to return.
- Throws:
InterruptedExceptionIOException
-