@InterfaceAudience.Private @InterfaceStability.Unstable public class DefaultS3ClientFactory extends org.apache.hadoop.conf.Configured implements S3ClientFactory
S3ClientFactory implementation.
This calls the AWS SDK to configure and create an
AmazonS3Client that communicates with the S3 service.S3ClientFactory.S3ClientCreationParameters| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_ENDPOINT_WITH_FIPS
Error message when an endpoint is set with FIPS enabled: "An endpoint cannot set when fs.s3a.endpoint.fips is true".
|
protected static org.slf4j.Logger |
LOG
Subclasses refer to this.
|
| Constructor and Description |
|---|
DefaultS3ClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected software.amazon.awssdk.core.client.config.ClientOverrideConfiguration.Builder |
createClientOverrideConfiguration(S3ClientFactory.S3ClientCreationParameters parameters,
org.apache.hadoop.conf.Configuration conf)
Create an override configuration for an S3 client.
|
software.amazon.awssdk.services.s3.S3AsyncClient |
createS3AsyncClient(URI uri,
S3ClientFactory.S3ClientCreationParameters parameters)
Creates a new
S3AsyncClient. |
software.amazon.awssdk.services.s3.S3Client |
createS3Client(URI uri,
S3ClientFactory.S3ClientCreationParameters parameters)
Creates a new
S3Client. |
software.amazon.awssdk.transfer.s3.S3TransferManager |
createS3TransferManager(software.amazon.awssdk.services.s3.S3AsyncClient s3AsyncClient)
Creates a new
S3TransferManager. |
protected static final org.slf4j.Logger LOG
@VisibleForTesting public static final String ERROR_ENDPOINT_WITH_FIPS
public software.amazon.awssdk.services.s3.S3Client createS3Client(URI uri, S3ClientFactory.S3ClientCreationParameters parameters) throws IOException
S3ClientFactoryS3Client.
The client returned supports synchronous operations. For
asynchronous operations, use
S3ClientFactory.createS3AsyncClient(URI, S3ClientCreationParameters).createS3Client in interface S3ClientFactoryuri - S3A file system URIparameters - parameter objectIOException - on any IO problempublic software.amazon.awssdk.services.s3.S3AsyncClient createS3AsyncClient(URI uri, S3ClientFactory.S3ClientCreationParameters parameters) throws IOException
S3ClientFactoryS3AsyncClient.
The client returned supports asynchronous operations. For
synchronous operations, use
S3ClientFactory.createS3Client(URI, S3ClientCreationParameters).createS3AsyncClient in interface S3ClientFactoryuri - S3A file system URIparameters - parameter objectIOException - on any IO problempublic software.amazon.awssdk.transfer.s3.S3TransferManager createS3TransferManager(software.amazon.awssdk.services.s3.S3AsyncClient s3AsyncClient)
S3ClientFactoryS3TransferManager.createS3TransferManager in interface S3ClientFactorys3AsyncClient - the async client to be used by the TM.protected software.amazon.awssdk.core.client.config.ClientOverrideConfiguration.Builder createClientOverrideConfiguration(S3ClientFactory.S3ClientCreationParameters parameters, org.apache.hadoop.conf.Configuration conf) throws IOException
parameters - parameter objectconf - configuration objectIOException - any IOE raised, or translated exceptionRuntimeException - some failures creating an http signerIOException - any IOE raised, or translated exceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.