Skip to content

Support for Spark built with Scala 2.13 #12922

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

Open
guangyu-yang-rokt opened this issue Mar 20, 2025 · 0 comments
Open

Support for Spark built with Scala 2.13 #12922

guangyu-yang-rokt opened this issue Mar 20, 2025 · 0 comments
Labels
bug Bug report

Comments

@guangyu-yang-rokt
Copy link

Describe the bug
We have recently upgrade our spark 3.5.2 image to use scala 2.13. However this cause a compatibility issue comes from datahub's event listener:

Exception in thread "spark-listener-group-shared" java.lang.NoSuchMethodError: 'scala.collection.Seq org.apache.spark.scheduler.SparkListenerJobStart.stageIds()'
at io.openlineage.spark.agent.OpenLineageSparkListener.onJobStart(OpenLineageSparkListener.java:169)
at datahub.spark.DatahubSparkListener.onJobStart(DatahubSparkListener.java:311)

Seems the lineage jar's build.gradle has a lot of hardcoded dependencies use spark jars with scala 2.12:

implementation "io.openlineage:openlineage-spark_2.12:$openLineageVersion"
compileOnly "org.apache.iceberg:iceberg-spark3-runtime:0.12.1"
compileOnly("org.apache.spark:spark-sql_2.12:3.1.3") {
exclude group: 'org.eclipse.jetty', module: 'jetty-servlet'
exclude group: 'org.eclipse.jetty', module: 'jetty-server'
exclude group: 'org.eclipse.jetty', module: 'jetty-util'
exclude group: 'org.eclipse.jetty', module: 'jetty-webapp'
exclude group: 'org.eclipse.jetty', module: 'jetty-security'
}
compileOnly "io.github.spark-redshift-community:spark-redshift_2.12:6.2.0-spark_3.5"

To Reproduce
Steps to reproduce the behavior:

  1. integrate datahub spark-lineage jar to spark image built with scala 2.13 https://repo1.maven.org/maven2/io/acryl/acryl-spark-lineage/0.2.7/

Expected behavior
datahub jar can support scala 2.13

@guangyu-yang-rokt guangyu-yang-rokt added the bug Bug report label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug report
Projects
None yet
Development

No branches or pull requests

1 participant