aws-samples / aws-glue-samples

AWS Glue code samples
MIT No Attribution
1.42k stars 812 forks source link

support s3 bucket name with dot #139

Closed yichilin closed 1 month ago

yichilin commented 1 year ago

Issue #, if available:

If s3 bucket name contains dot(e.g. s3a://my.production.bucket/), it throws the following error.

javax.net.ssl.SSLPeerUnverifiedException: Certificate for <my.production.bucket.s3.amazonaws.com> doesn't match any of the subject alternative names: [*.s3.amazonaws.com, s3.amazonaws.com]

See more detail here: https://issues.apache.org/jira/browse/HADOOP-18159

Description of changes:

By resolving this issue, enable spark.hadoop.fs.s3a.path.style.access in config file.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.