skip dataflint UI on databricks spark 4 to avoid jakarta.servlet crash#71
Merged
skip dataflint UI on databricks spark 4 to avoid jakarta.servlet crash#71
Conversation
DBR 17.3 is Spark 4 based but ships javax.servlet instead of jakarta.servlet, causing NoClassDefFoundError when DataflintJettyUtils.createStaticHandler runs and crashing the cluster on startup (issue #47). Add isUISupported on the page factory; Spark4PageFactory returns false on Databricks so the common loader skips UI installation entirely. Listeners and data export still run. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
menishmueli
approved these changes
May 6, 2026
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.
Fixes #47
Summary
javax.servletinstead ofjakarta.servlet, so the Spark 4 build of DataFlint crashes the driver on startup withNoClassDefFoundError: jakarta/servlet/ServletfromDataflintJettyUtils.createStaticHandler.isUISupported(ui): Boolean = truetoDataflintPageFactory.Spark4PageFactoryoverrides it to returnfalsewhenspark.databricks.clusterUsageTags.cloudProvideris set.DataflintSparkUICommonInstaller.loadUIshort-circuits with a warning when the page factory reports the UI is unsupported — no static handler, no DataFlint tab. Listeners (data export, etc.) still run.Test plan
NoClassDefFoundError)