Apache Spark Exception in thread “main” java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

前端 未结 2 1410
南方客
南方客 2021-01-18 08:31

Scala version:2.11.7(had to upgrade the scala verison to enable case clasess to accept more than 22 parameters.) Spark version:1.6.1 PFB pom.xml

Getting below error

2条回答
  •  生来不讨喜
    2021-01-18 09:01

    For scala 2.12.0, you should add the following dependency to your POM.xml file, and that's it.

    
    
        org.scala-lang
        scala-library
        2.12.0-M1
    
    

提交回复
热议问题