Skip to content
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

[BEAM-12845] Add AWS services as a runtime dependency to Spark Job Server to support S3 #15461

Merged
merged 3 commits into from
Sep 15, 2021

Conversation

meowcakes
Copy link
Contributor

This accomplishes the same thing as #15313, except for the Spark job server. The AWS services runtime dependency is necessary to use S3 for staging artifacts.

Additionally, I added software.amazon.awssdk:sts as a dependency to the amazon-web-services2 SDK. This is necessary for authentication from EKS when using IAM roles for service accounts.


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

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • 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.

ValidatesRunner compliance status (on master branch)

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- Build Status Build Status Build Status Build Status ---
Java Build Status Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Build Status
Python --- Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status ---
XLang Build Status Build Status Build Status Build Status Build Status ---

Examples testing status on various runners

Lang ULR Dataflow Flink Samza Spark Twister2
Go --- --- --- --- --- --- ---
Java --- Build Status
Build Status
Build Status
--- --- --- --- ---
Python --- --- --- --- --- --- ---
XLang --- --- --- --- --- --- ---

Post-Commit SDK/Transform Integration Tests Status (on master branch)

Go Java Python
Build Status Build Status Build Status
Build Status
Build Status

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website Whitespace Typescript
Non-portable Build Status
Build Status
Build Status
Build Status
Build Status
Build Status Build Status Build Status Build Status
Portable --- Build Status Build Status --- --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

GitHub Actions Tests Status (on master branch)

Build python source distribution and wheels
Python tests
Java tests

See CI.md for more information about GitHub Actions CI.

@codecov
Copy link

codecov bot commented Sep 6, 2021

Codecov Report

Merging #15461 (9627cb3) into master (bcb56b7) will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #15461      +/-   ##
==========================================
- Coverage   83.76%   83.75%   -0.02%     
==========================================
  Files         443      443              
  Lines       60077    60077              
==========================================
- Hits        50324    50316       -8     
- Misses       9753     9761       +8     
Impacted Files Coverage Δ
...hon/apache_beam/runners/direct/test_stream_impl.py 94.02% <0.00%> (-2.24%) ⬇️
...pache_beam/runners/interactive/interactive_beam.py 75.53% <0.00%> (-1.07%) ⬇️
...runners/interactive/display/pcoll_visualization.py 85.26% <0.00%> (-0.53%) ⬇️
...hon/apache_beam/runners/worker/bundle_processor.py 93.39% <0.00%> (-0.25%) ⬇️
sdks/python/apache_beam/transforms/util.py 95.81% <0.00%> (-0.17%) ⬇️
sdks/python/apache_beam/runners/common.py 88.73% <0.00%> (-0.15%) ⬇️
sdks/python/apache_beam/runners/direct/executor.py 96.79% <0.00%> (+0.53%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bcb56b7...9627cb3. Read the comment docs.

@aromanenko-dev
Copy link
Contributor

aromanenko-dev commented Sep 6, 2021

Is it related to the same Jira as #15313 ?

UPD: seems it requires a new Jira

Copy link
Contributor

@aromanenko-dev aromanenko-dev left a comment

Choose a reason for hiding this comment

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

Thanks for contribution!
Please, don't merge master branch into your feature branch, just use rebase instead

sdks/java/io/amazon-web-services2/build.gradle Outdated Show resolved Hide resolved
@aromanenko-dev
Copy link
Contributor

aromanenko-dev commented Sep 6, 2021

CC: @ibzib ptal

@meowcakes meowcakes changed the title Add AWS services as a runtime dependency to Spark Job Server to support S3 [BEAM-12845] Add AWS services as a runtime dependency to Spark Job Server to support S3 Sep 7, 2021
@meowcakes meowcakes requested a review from ibzib September 8, 2021 04:10
Copy link
Contributor

@ibzib ibzib left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -39,6 +39,7 @@ dependencies {
compile library.java.aws_java_sdk2_sdk_core
compile library.java.aws_java_sdk2_sns
compile library.java.aws_java_sdk2_sqs
runtime library.java.aws_java_sdk2_sts
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: let's list different types of dependencies (compile, testCompile, etc.) contiguously so it's easier to read.

@ibzib
Copy link
Contributor

ibzib commented Sep 8, 2021

Run Java_Examples_Dataflow PreCommit

@meowcakes
Copy link
Contributor Author

Run Java_Examples_Dataflow PreCommit

@meowcakes
Copy link
Contributor Author

Run Java_Examples_Dataflow_Java11 PreCommit

@pabloem
Copy link
Member

pabloem commented Sep 9, 2021

should this be merged?

@ibzib
Copy link
Contributor

ibzib commented Sep 10, 2021

should this be merged?

I'm fine with merging it, @aromanenko-dev what do you think?

@aromanenko-dev
Copy link
Contributor

Run Java PostCommit

@aromanenko-dev
Copy link
Contributor

@ibzib I'm fine too, just let's wait for Java PostCommit results

@aromanenko-dev
Copy link
Contributor

And we need to squash the commits before merge.

@aromanenko-dev
Copy link
Contributor

Run Java PostCommit

@aromanenko-dev aromanenko-dev merged commit f5afff1 into apache:master Sep 15, 2021
calvinleungyk pushed a commit to calvinleungyk/beam that referenced this pull request Sep 22, 2021
…rver to support S3 (apache#15461)

* enable S3 file system for spark job server

* make sts a runtime dependency

* contiguous dependency types
dmitriikuzinepam pushed a commit to dmitriikuzinepam/beam that referenced this pull request Nov 2, 2021
…rver to support S3 (apache#15461)

* enable S3 file system for spark job server

* make sts a runtime dependency

* contiguous dependency types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants