java.lang.NoClassDefFoundError: org/apache/nifi/spark/NiFiReceiver at <app name>.main(main.scala)
Searched on Google with the first line of a JAVA stack trace?
We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.
Recommended solutions based on your search
Samebug tips
- Expert tip
This might be an issue with the file location in the Spark submit command. Try it with
spark-submit --master spark://master:7077 \ hello_world_from_pyspark.py {file location}
Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all
Solutions on the web
via Stack Overflow by codeandchips
, 1 year agovia Stack Overflow by Raystorm
, 2 years agovia eclipse.org by Unknown author, 1 year ago
via eclipse.org by Unknown author, 1 year ago
via eclipse.org by Unknown author, 2 years ago
via Google Groups by cris, 2 years ago
java.lang.ClassNotFoundException: org.apache.nifi.spark.NiFiReceiver
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)