public class DefaultS3ClientFactory extends org.apache.hadoop.conf.Configured implements S3ClientFactory
S3ClientFactory implementation.
This which calls the AWS SDK to configure and create an
AmazonS3Client that communicates with the S3 service.| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
DefaultS3ClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
com.amazonaws.services.s3.AmazonS3 |
createS3Client(URI name,
String bucket,
com.amazonaws.auth.AWSCredentialsProvider credentials)
Creates a new
AmazonS3 client. |
protected com.amazonaws.services.s3.AmazonS3 |
newAmazonS3Client(com.amazonaws.auth.AWSCredentialsProvider credentials,
com.amazonaws.ClientConfiguration awsConf)
Wrapper around constructor for
AmazonS3 client. |
public com.amazonaws.services.s3.AmazonS3 createS3Client(URI name, String bucket, com.amazonaws.auth.AWSCredentialsProvider credentials) throws IOException
S3ClientFactoryAmazonS3 client.createS3Client in interface S3ClientFactoryname - raw input S3A file system URIbucket - Optional bucket to use to look up per-bucket proxy secretscredentials - credentials to useIOException - IO problemprotected com.amazonaws.services.s3.AmazonS3 newAmazonS3Client(com.amazonaws.auth.AWSCredentialsProvider credentials,
com.amazonaws.ClientConfiguration awsConf)
AmazonS3 client.
Override this to provide an extended version of the clientcredentials - credentials to useawsConf - AWS configurationCopyright © 2008–2021 Apache Software Foundation. All rights reserved.