Exception in thread main java lang noclassdeffounderror scala collection gentraversableonce class

AbstractEsRDDIterator. java: 745) Caused by: java. ClassNotFoundException: scala. This exception almost always indicates that the ES- Hadoop jar is expecting an incompatible version of Scala. 11 is not backwards. tl; dr Change spark- mllib_ 2. 10 to spark- mllib_ 2. 8 is used for Spark MLlib dependency ( and optionally remove spark- core_ 2. xml : < dependencies> < dependency>. scalaVersion : = " 2. 1" libraryDependencies + + = Seq( " org. spark" % " spark- core_ 2. spark" % " spark- sql_ 2.

  • Solucionar error directx runtime
  • Error code nw 6 400
  • Error 404 0 not found iis 8 0
  • Ошибка 403 google play market


  • Video:Main gentraversableonce collection

    Collection class lang

    This configuration worked for me. share| improve this answer. Exception in thread " main" java. NoClassDefFoundError: scala/ collection/ GenTraversableOnce$ class at kafka. < init> ( Unknown Source) at kafka. FetchRequestAndResponseStatsRegistry$. NoClassDefFoundError. Here is my complete program: object StatefulNetworkWordCount { def updateFunction( newValues: Seq[ Int], runningCount: Option[ Int] ) : Option[ Int] = { val the POM you have Scala version 2. 7 but later on in the dependencies you are declaring Spark deps compiled against 2. 10 : < artifactId> spark- streaming_ 2.

    10< / artifactId> < artifactId> spark- core_ 2. 10< / artifactId>. The collection API is different between Scala 2. 11 < dependency> < groupId> org. scala- lang< / groupId> < artifactId> scala- library< / artifactId> < version> 2. 6< / version> < / dependency>. Submitting Spark job. Starting Kafka direct stream to broker list: 192. I think that your problem is that scala library is not in your runtime classpath. you must manually add manually. If you are using tools like maven or sbt, maybe the dependency is marked as provided instead compiled. NoClassDefFoundError: scala/ collection/ GenTraversableOnce$ class. Attached image shows the stack trace. I am trying to run the code on windows on windows shell using command.