anajai
anajai

Reputation: 3

Compatible version of Scala for Spark 2.4.2 & EMR 5.24.1

What Scala version should I use to compile/build with Spark 2.4.2? I tried with Scala 2.12 and got the below error message.

Exception in thread "main" java.lang.NoSuchMethodError: scala.Predef$.refArrayOps([Ljava/lang/Object;)[Ljava/lang/Object;

Any input is really appreciated

Upvotes: 0

Views: 235

Answers (1)

akl
akl

Reputation: 46

Upon checking, 2.11.12 looks to be the scala version on EMR. It worked for us.

Upvotes: 0

Related Questions