@InterfaceAudience.Private @InterfaceStability.Unstable public class InconsistentS3ClientFactory extends DefaultS3ClientFactory
hadoop-aws module to enable integration tests to use this
just by editing the Hadoop configuration used to bring up the client.
The factory uses the older constructor-based instantiation/configuration
of the client, so does not wire up metrics, handlers etc.S3ClientFactory.S3ClientCreationParametersLOG| Constructor and Description |
|---|
InconsistentS3ClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected com.amazonaws.services.s3.AmazonS3 |
buildAmazonS3Client(com.amazonaws.ClientConfiguration awsConf,
S3ClientFactory.S3ClientCreationParameters parameters)
Use the Builder API to create an AWS S3 client.
|
buildAmazonS3EncryptionClient, configureAmazonS3Client, createEndpointConfiguration, createS3Clientprotected com.amazonaws.services.s3.AmazonS3 buildAmazonS3Client(com.amazonaws.ClientConfiguration awsConf,
S3ClientFactory.S3ClientCreationParameters parameters)
DefaultS3ClientFactory
This has a more complex endpoint configuration mechanism
which initially caused problems; the
withForceGlobalBucketAccessEnabled(true)
command is critical here.
buildAmazonS3Client in class DefaultS3ClientFactoryawsConf - AWS configurationparameters - parametersCopyright © 2008–2022 Apache Software Foundation. All rights reserved.