public class DefaultS3ClientFactory extends org.apache.hadoop.conf.Configured implements S3ClientFactory
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 |
|---|---|
static com.amazonaws.ClientConfiguration |
createAwsConf(org.apache.hadoop.conf.Configuration conf)
Create a new
ClientConfiguration. |
com.amazonaws.services.s3.AmazonS3 |
createS3Client(URI name)
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) throws IOException
S3ClientFactoryAmazonS3 client.createS3Client in interface S3ClientFactoryname - raw input S3A file system URIIOException - IO problempublic static com.amazonaws.ClientConfiguration createAwsConf(org.apache.hadoop.conf.Configuration conf)
ClientConfiguration.conf - The Hadoop configurationprotected 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–2020 Apache Software Foundation. All rights reserved.