fix(spark4): support Spark 4.2 Jetty 12 (ee10) in history server UI - #80
Open
Prajaktcs wants to merge 3 commits into
Open
fix(spark4): support Spark 4.2 Jetty 12 (ee10) in history server UI#80Prajaktcs wants to merge 3 commits into
Prajaktcs wants to merge 3 commits into
Conversation
Spark 4.2 upgraded to Jetty 12, shading the servlet classes under org.sparkproject.jetty.ee10.servlet. DataflintJettyUtils only probed the Jetty 9-11 package (org.sparkproject.jetty.servlet / org.eclipse.jetty.servlet), so createStaticHandler failed with ClassNotFoundException: org.eclipse.jetty.servlet.ServletContextHandler and the history UI returned HTTP 500. Extend the reflective class lookup to try the ee10 package first, keeping the older packages as fallbacks (backwards compatible with Spark 3.x / 4.0 / 4.1). Also branch the two Jetty-11-specific init-params that changed in Jetty 12: the DefaultServlet resource param (resourceBase -> baseResource) and the gzip param namespace. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Add a pluginspark4 integration test against Spark 4.2.0 and an example_4_2_0 project so the Jetty 12 history/live UI fix is covered on the classpath that ships ee10. Co-authored-by: Cursor <cursoragent@cursor.com>
Spark 4.2 requires Scala 2.13.18+; bump the project Scala version and fork the example run with the build-root CWD so local example_4_2_0/run works. Co-authored-by: Cursor <cursoragent@cursor.com>
Prajaktcs
marked this pull request as ready for review
July 31, 2026 02:53
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
baseResource/ gzip init-param changes inDataflintJettyUtilsDataflintJettyUtilsSpecagainst Spark 4.2.0 and anexample_4_2_0projectMurmurHash3.caseClassHashNoSuchMethodError)Test plan
sbt 'pluginspark4/testOnly org.apache.spark.dataflint.api.DataflintJettyUtilsSpec'sbt 'example_4_2_0/run'→ http://localhost:10000/dataflint/ returns 200