Skip to content

Conversation

rjurney
Copy link
Collaborator

@rjurney rjurney commented Jan 11, 2025

JDK 8 support is adequate for now, I believe it is still the recommended version for Spark.

@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.30%. Comparing base (0c6f35f) to head (a4bf720).
Report is 3 commits behind head on master.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #476   +/-   ##
=======================================
  Coverage   91.30%   91.30%           
=======================================
  Files          18       18           
  Lines         840      840           
  Branches       52       52           
=======================================
  Hits          767      767           
  Misses         73       73           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bjornjorgensen
Copy link
Contributor

for spark 4.0 we need java 17 and 21

@rjurney
Copy link
Collaborator Author

rjurney commented Jan 13, 2025

for spark 4.0 we need java 17 and 21

Okay, I will test again but this seemed to break Java 8, so I thought of pulling it. I will check again.

I do not have any idea what is required for Spark 4. If you have a better grasp, I would mucho appreciate a Spark 4 support ticket :)

@rjurney
Copy link
Collaborator Author

rjurney commented Jan 13, 2025

@bjornjorgensen yeah this breaks Java 0.8, which I think most Spark users run. I guess we should conditionally add it based on the JVM version?

Unrecognized option: --add-opens=java.base/sun.nio.ch=ALL-UNNAMED

@Kimahriman
Copy link
Contributor

Spark also includes -XX:+IgnoreUnrecognizedVMOptions so it works for both Java versions

@bjornjorgensen
Copy link
Contributor

spark branch 3.5 only support and build on java version 11 and 17
https://github.com/apache/spark/actions/runs/12743044791/job/35512274672
image

I have with a lot of help from AI tested it to run on java 8, 11 and 17 https://github.com/bjornjorgensen/graphframes/commits/java11/ you can copy what you like but.. its made just to test and it is written by AI

@rjurney rjurney merged commit db8da51 into master Jan 17, 2025
6 checks passed
@rjurney rjurney deleted the rjurney/jdk-8-fix branch April 15, 2025 00:33
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.

4 participants