Skip to content

Commit

Permalink
Merge pull request #23522: Downgrade Scala version in Spark job-serve…
Browse files Browse the repository at this point in the history
…r to prevent Scala serialization bug
  • Loading branch information
aromanenko-dev authored Oct 11, 2022
2 parents 08b8f87 + 7b5713a commit d2b0a26
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runners/spark/3/job-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,12 @@ project.ext {

// Load the main build script which contains all build logic.
apply from: "$basePath/spark_job_server.gradle"


configurations.runtimeClasspath {
resolutionStrategy {
// Downgrade the Scala version of the job-server to match the Scala version of a Spark 3.1.2 cluster to prevent
// a Scala bug (InvalidClassException when deserializing WrappedArray), see https://github.com/apache/beam/issues/21092
force "org.scala-lang:scala-library:2.12.10"
}
}

0 comments on commit d2b0a26

Please sign in to comment.