-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[AWS] S3FileIO - Add Cross-Region Bucket Access #9804
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
4d5a935
d2f7d47
63eddfa
4303eeb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -500,6 +500,13 @@ spark-sql --conf spark.sql.catalog.my_catalog=org.apache.iceberg.spark.SparkCata | |
|
|
||
| For more details on using S3 Access Grants, please refer to [Managing access with S3 Access Grants](https://docs.aws.amazon.com/AmazonS3/latest/userguide/access-grants.html). | ||
|
|
||
| ### S3 Cross-Region Access | ||
|
|
||
| S3 Cross-Region bucket access can be turned on by setting catalog property `s3.cross-region-access-enabled` to `true`. | ||
| This is turned off by default to avoid first S3 API call increased latency. | ||
| For more details, please refer to [Cross-Region access for Amazon S3 | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we follow the convention of the other sections and add an example here? Something like: There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did the same as in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Doc updated. |
||
| ](https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/s3-cross-region.html). | ||
|
|
||
| ### S3 Acceleration | ||
|
|
||
| [S3 Acceleration](https://aws.amazon.com/s3/transfer-acceleration/) can be used to speed up transfers to and from Amazon S3 by as much as 50-500% for long-distance transfer of larger objects. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please also add
Assertions.assertThat(s3Configuration.crossRegionAccessEnabled()).isTrue()at the bottom of this test methodThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nastra
crossRegionAccessEnabledis anS3Clientattribute rather thanS3Configuration(same asdualstackEnabled).Similar to
dualstackEnabledattribute (not asserted in this test method),s3Configuration.crossRegionAccessEnabled()does not exist.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah unfortunately I think getting the value of the attributes from the client isn't possible without doing some reflection hacks.
What I think we can do is add S3 integration tests though to verify the actual cross region access behavior. That seems like a more useful test to verify that when the property is set we can perform operations across regions as expected. cc @jackye1995 @geruh @rahil-c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for integ test, there is already a AWS_CROSS_REGION config there that can be used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also a
AWS_TEST_CROSS_REGION_BUCKETconfig (although originally added for S3 Access Point tests).Can anybody help / provide guidance on this feature's integration tests? Thanks.