This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
Updated Spark base image to use Alpine; Fixed Spark build script #578
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Addressed:
https://github.com/lightbend/cloudflow-internal-ops/issues/63
#468
The Spark build script no longer builds with R profile. It doesn't create a Github release either. We'll move away from maintaining a Lightbend fork eventually.
Why are the changes needed?
Alpine is a lighter-weight image that has no known security vulnerabilities. The build script was also broken.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
I ported Stavros' changes at SPARK-24748 to a separate branch named "lightbend-2.4.5". See diffs here.
Then I tested with call-record-aggregator app because it uses Spark runtime. By setting in its
build.sbt
:which is an image built using the script contained in this PR, along with the Spark fork mentioned above, the executor pods start up successfully.
With the old Spark image
lightbend/spark:2.0.5-cloudflow-spark-2.4.5-scala-2.12
, the executor pods couldn't pull the image from GCR because they didn't have the same service account as the driver pods:Now with the new image, the executor pods can run:
And I've verified that they have the right service account.