Skip to content

fix: spark 3 add bouncy castle as compile time dependency #1212

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

Merged
merged 5 commits into from
Jul 22, 2025

Conversation

razvan
Copy link
Member

@razvan razvan commented Jul 22, 2025

Description

Hadoop has stopped exporting the bouncy castle dependency which leads to ClassNotFoundExceptions in kerberized environments.

Spark 4 has already fixed this issue in SPARK-51311 .

This PR backports the above to Spark 3.

The image contains the required jar file:

❯ docker run --rm oci.stackable.tech/sdp/spark-k8s:3.5.6-stackable0.0.0-dev find ./ -iname 'bcprov*'
...
./jars/bcprov-jdk18on-1.77.jar

Definition of Done Checklist

Note

Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant.

Please make sure all these things are done and tick the boxes

  • Changes are OpenShift compatible
  • All added packages (via microdnf or otherwise) have a comment on why they are added
  • Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
  • All packages should have (if available) signatures/hashes verified
  • Add an entry to the CHANGELOG.md file
  • Integration tests ran successfully
TIP: Running integration tests with a new product image

The image can be built and uploaded to the kind cluster with the following commands:

bake --product <product> --image-version <stackable-image-version>
kind load docker-image <image-tagged-with-the-major-version> --name=<name-of-your-test-cluster>

See the output of bake to retrieve the image tag for <image-tagged-with-the-major-version>.

@razvan razvan self-assigned this Jul 22, 2025
@razvan razvan marked this pull request as ready for review July 22, 2025 16:55
@razvan razvan enabled auto-merge July 22, 2025 16:59
NickLarsenNZ
NickLarsenNZ previously approved these changes Jul 22, 2025
Copy link
Member

@NickLarsenNZ NickLarsenNZ left a comment

Choose a reason for hiding this comment

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

LGTM

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
@razvan razvan added this pull request to the merge queue Jul 22, 2025
Merged via the queue into main with commit 1e737da Jul 22, 2025
3 checks passed
@razvan razvan deleted the fix/spark-bcprov branch July 22, 2025 17:06
razvan added a commit that referenced this pull request Jul 22, 2025
* fix: spark 3 add bouncy castle as compile time dependency

* put the dep in the right place

* update patches for spark 3.5.5

* update changelog

* Update CHANGELOG.md

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>

---------

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
razvan added a commit that referenced this pull request Jul 22, 2025
)

* fix: spark 3 add bouncy castle as compile time dependency

* put the dep in the right place

* update patches for spark 3.5.5

* update changelog

* Update CHANGELOG.md



---------

Co-authored-by: Nick <10092581+NickLarsenNZ@users.noreply.github.com>
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.

2 participants