public class NetworkBinding extends Object
| Constructor and Description |
|---|
NetworkBinding() |
| Modifier and Type | Method and Description |
|---|---|
static void |
bindSSLChannelMode(org.apache.hadoop.conf.Configuration conf,
com.amazonaws.ClientConfiguration awsConf)
Configures the
.SSLConnectionSocketFactory used by the AWS SDK. |
static String |
fixBucketRegion(String region)
Given an S3 bucket region as returned by a bucket location query,
fix it into a form which can be used by other AWS commands.
|
static void |
logDnsLookup(org.apache.hadoop.conf.Configuration conf)
Log the dns address associated with s3 endpoint.
|
public static void bindSSLChannelMode(org.apache.hadoop.conf.Configuration conf,
com.amazonaws.ClientConfiguration awsConf)
throws IOException
.SSLConnectionSocketFactory used by the AWS SDK. A custom
SSLConnectionSocketFactory can be set using the method
ApacheHttpClientConfig.setSslSocketFactory(
com.amazonaws.thirdparty.apache.http.conn.socket.ConnectionSocketFactory).
If .SSLConnectionSocketFactory cannot be found on the classpath, the value
of Constants.SSL_CHANNEL_MODE is ignored.conf - the Configuration used to get the client specified
value of #SSL_CHANNEL_MODEawsConf - the ClientConfiguration to set the
SSLConnectionSocketFactory for.IOException - if there is an error while initializing the
SSLSocketFactory other than classloader problems.public static String fixBucketRegion(String region)
https://forums.aws.amazon.com/thread.jspa?messageID=796829
See alsocom.amazonaws.services.s3.model.Region.fromValue()
for its conversion logic.region - region from S3 call.public static void logDnsLookup(org.apache.hadoop.conf.Configuration conf)
Constants#DEFAULT_ENDPOINT
will be used.conf - input configuration.Copyright © 2008–2020 Apache Software Foundation. All rights reserved.