public final class BucketTool extends S3GuardTool
S3GuardTool.BucketInfo
Modifier and Type | Field and Description |
---|---|
static String |
CREATE
create command.
|
static String |
NAME
Name of this tool: "bucket".
|
static String |
OPT_ENDPOINT
endpoint "endpoint".
|
static String |
OPT_REGION
region "region".
|
static String |
OPT_ZONE
Zone for a store.
|
static String |
PROBE_FAILURE
Error Message logged/thrown when the tool could not start as
the bucket probe was not disabled and the probe (inevitably)
failed.
|
static String |
PURPOSE
Purpose of this tool: "View and manipulate S3 buckets".
|
AGE_OPTIONS_USAGE, DAYS_FLAG, HOURS_FLAG, META_FLAG, MINUTES_FLAG, SECONDS_FLAG, VERBOSE, WRONG_FILESYSTEM
Constructor and Description |
---|
BucketTool(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Return sub-command name.
|
String |
getUsage() |
static void |
removeBucketOverrides(String bucket,
org.apache.hadoop.conf.Configuration conf,
String... options)
Remove any values from a bucket.
|
int |
run(String[] args,
PrintStream out)
Run the tool, capturing the output (if the tool supports that).
|
addAgeOptions, badState, bindFilesystem, close, dumpFileSystemStatistics, errorln, errorln, exit, exitException, getCommandFormat, getFilesystem, initS3AFileSystem, invalidArgs, main, notFound, parseArgs, parseArgsWithErrorReporting, println, resetBindings, run, run, s3guardUnsupported, toUri, userAborted
public static final String NAME
public static final String PURPOSE
public static final String CREATE
public static final String OPT_REGION
public static final String OPT_ENDPOINT
public static final String OPT_ZONE
public static final String PROBE_FAILURE
public String getUsage()
getUsage
in class S3GuardTool
public String getName()
S3GuardTool
getName
in class S3GuardTool
public int run(String[] args, PrintStream out) throws Exception, org.apache.hadoop.util.ExitUtil.ExitException
S3GuardTool
ExitUtil.ExitException
with 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.run
in class S3GuardTool
args
- argument listout
- output streamException
- on any failureorg.apache.hadoop.util.ExitUtil.ExitException
public static void removeBucketOverrides(String bucket, org.apache.hadoop.conf.Configuration conf, String... options)
bucket
- bucket whose overrides are to be removed. Can be null/emptyconf
- configoptions
- list of fs.s3a options to removeCopyright © 2008–2024 Apache Software Foundation. All rights reserved.