Home > OS >  Compatible version of Scala for Spark 2.4.2 & EMR 5.24.1
Compatible version of Scala for Spark 2.4.2 & EMR 5.24.1

Time:03-16

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

CodePudding user response:

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

  • Related