Skip to content

add aws hadoop to DeltaIO - #39617

Open
derrickaw wants to merge 8 commits into
apache:masterfrom
derrickaw:20260804_updateDeltaLakeDependencies
Open

add aws hadoop to DeltaIO#39617
derrickaw wants to merge 8 commits into
apache:masterfrom
derrickaw:20260804_updateDeltaLakeDependencies

Conversation

@derrickaw

Copy link
Copy Markdown
Collaborator

Please add a meaningful description for your change here


Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

  • Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
  • Update CHANGES.md with noteworthy changes.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests
Go tests

See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@derrickaw
derrickaw requested a review from chamikaramj August 4, 2026 19:43
@derrickaw
derrickaw marked this pull request as ready for review August 4, 2026 19:45
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@chamikaramj chamikaramj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

"fs.s3a.endpoint",
localstack.getEndpointOverride(LocalStackContainer.Service.S3).toString());
configuration.set("fs.s3a.access.key", localstack.getAccessKey());
configuration.set("fs.s3a.secret.key", localstack.getSecretKey());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are all these properties required ? If not we should fine the minimum set that is required to use S3.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not all required. Some are for the test, but in real situations we can get down to a minimum set.

permitUnusedDeclared "com.google.cloud.bigdataoss:gcsio:$bigdataoss_gcs_connector_version"
permitUnusedDeclared "com.google.cloud.bigdataoss:util:$bigdataoss_gcs_connector_version"

runtimeOnly library.java.hadoop_aws

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not need "aws-java-sdk-bundle" ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its pulled in as a transitive dependency from hadoop_aws

@@ -0,0 +1,286 @@
/*

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's confirm that this passes for "beam_PostCommit_Java_Delta_IO_Dataflow" by modifying the trigger file.

https://github.com/apache/beam/blob/master/.github/trigger_files/beam_PostCommit_Java_Delta_IO_Dataflow.json

@chamikaramj chamikaramj added this to the 2.76.0 Release milestone Aug 5, 2026
@chamikaramj

Copy link
Copy Markdown
Contributor

Probably good to get this into 2.76.0 since this adds S3 support for a key feature (Delta Lake I/O).

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Assigning reviewers:

R: @ahmedabu98 for label java.
R: @liferoad for label build.

Note: If you would like to opt out of this review, comment assign to next reviewer.

Available commands:

  • stop reviewer notifications - opt out of the automated review tooling
  • remind me after tests pass - tag the comment author after tests pass
  • waiting on author - shift the attention set back to the author (any comment or push by the author will return the attention set to the reviewers)

The PR bot will only process comments in the main thread (not review comments).

@chamikaramj chamikaramj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

outputs.upToDateWhen { false }

include '**/*IT.class'
exclude '**/DeltaIOS3IT.class'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, didn't notice that we had to exclude here. Were you able to verify this end-to-end with real S3 data ?

Also, which Github action will pick up this test ?

@derrickaw derrickaw Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to in JB but couldn't due to the hadoop-aws dependency missing. I haven't tried again. Was hoping to get this in and try again.

I have an extra step in the post commit test to run the DeltaIOS3IT as a local simulated aws run via LocalStackContainer.

resolutionStrategy.force 'org.apache.hadoop:hadoop-client:3.3.6'
resolutionStrategy.force 'org.apache.hadoop:hadoop-hdfs:3.3.6'
resolutionStrategy.force 'org.apache.hadoop:hadoop-hdfs-client:3.3.6'
resolutionStrategy.force 'org.apache.hadoop:hadoop-aws:3.3.6'

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How much does this increase the io-expansion-service jar size by ?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It actually decreases the jar size from 1.1GB to 0.8GB due to forcing it from 3.4.2 to 3.3.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants