Exception in thread "main" java.lang.NoClassDefFoundError: scala/collection/mutable/SynchronizedBuffer$class

Pranav

I am newbie in Spark and Scala and trying the hands-on in Cloudera Quick VM 5.8 in intelliJ community edition.

Can someone please help me to rectify the issues?

Code

sbt File

Alexey Romanov

_2.10 in the Spark dependency means it works with Scala 2.10, not 2.12. As you can see here, there is no spark-core_2.12, so use scalaVersion := "2.11.8" and "org.apache.spark" %% "spark-core" % "2.1.0". Read more at http://www.scala-sbt.org/0.13/docs/Cross-Build.html.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Exception in thread "main" java.lang.NoClassDefFoundError

Exception in thread "main" - java.lang.NoClassDefFoundError

Exception in thread "main" java.lang.NoClassDefFoundError: Main$1 java?

java error: Exception in thread "main" java.lang.NoClassDefFoundError

Exception in thread "main" java.lang.NoClassDefFoundError: rpc/Stub

"Exception in thread "main" java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing"

Exception in thread "main" java.lang.NoClassDefFoundError: org/mockito/Mockito

Exception in thread "main" java.lang.NoClassDefFoundError: scala/Cloneable

Built jar with ant: Exception in thread "main" java.lang.NoClassDefFoundError

Why Exception in thread "main" java.lang.NoClassDefFoundError:?

Exception in thread "main" java.lang.NoClassDefFoundError in TestNG. Why?

Exception in thread "main" java.lang.NoClassDefFoundError in testng

Exception in thread "main" java.lang.NoClassDefFoundError: rx/Observable$OnSubscribe

Exception in thread "main" java.lang.NoClassDefFoundError: junit/textui/ResultPrinter

Exception in thread "main" java.lang.NoClassDefFoundError: jcuda/driver/JCudaDriver

Exception in thread "main" java.lang.NoClassDefFoundError: javax/jms/MessageListener

Exception in thread "main" java.lang.NoClassDefFoundError: org/javatuples/Unit

Exception in thread "main" java.lang.NoClassDefFoundError: org/reactivestreams/Publisher?

Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jdbc/OracleShardingKeyBuilder

How to solve Exception in thread "main" java.lang.NoClassDefFoundError

NetBeans Exception in thread "main" java.lang.NoClassDefFoundError

Having exception in thread main java.lang.NoClassDefFoundError

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/lang/builder/CompareToBuilder

Exception in Rest Template : Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/core/log/LogDelegateFactory

Spark and Cassandra Java application: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/spark/sql/Dataset

Hadoop Java Error : Exception in thread "main" java.lang.NoClassDefFoundError: WordCount (wrong name: org/myorg/WordCount)

Command line Java: Error: A JNI error has occurred/Exception in thread "main" java.lang.NoClassDefFoundError

java - Exception in thread "main" java.lang.NoClassDefFoundError: io/kubernetes/client/openapi/ApiException

Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap error using Selenium Java

Cucumber - Java - Exception in thread "main" java.lang.NoClassDefFoundError: io/cucumber/plugin/ConcurrentEventListener