java.lang.NoClassDefFoundError: org/apache/spark/Logging


Samebug tips6

Set the path for java. Try to look it from here.


,
via askubuntu.com by Unknown author

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all


,
via netty.io by Unknown author

Solutions on the web2308

Solution icon of stackoverflow
org/apache/spark/Logging

Solution icon of github
org/apache/spark/Logging

Solution icon of googlegroups
via Google Groups by Christos Kozanitis <Christos Kozanitis>, 4 months ago
org/apache/spark/Logging

Solution icon of stackoverflow
org/apache/spark/Logging

Solution icon of stackoverflow
org/apache/spark/Logging

Solution icon of stackoverflow
via Stack Overflow by shiva k
, 6 months ago
org/apache/spark/Logging

Solution icon of github
via GitHub by bsphere
, 10 months ago
org/apache/spark/Logging

Solution icon of github
org/apache/spark/Logging

Solution icon of github
org/apache/spark/Logging

Solution icon of github
org/apache/spark/Logging

Stack trace

java.lang.NoClassDefFoundError: org/apache/spark/Logging
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
	at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at org.apache.spark.streaming.twitter.TwitterUtils$.createStream(TwitterUtils.scala:44)
	at TwitterStreamingApp$.main(TwitterStreamingApp.scala:42)
	at TwitterStreamingApp.main(TwitterStreamingApp.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:729)
	at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:185)
	at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:210)
	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:124)
	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.spark.Logging
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 23 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
3 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
1622 more bugmates