Zeppelin NoClassDefFoundError when the JAR is used
See original GitHub issueHi, If I use --package in my Zeppelin everything is fine. But when I use the JAR in my Zeppelin I receive this error: (I use JAR because it’s on HDFS and it has a faster session creation for users)
java.lang.NoClassDefFoundError: com/typesafe/config/ConfigMergeable
at com.johnsnowlabs.nlp.serialization.Feature.<init>(Feature.scala:15)
at com.johnsnowlabs.nlp.serialization.MapFeature.<init>(Feature.scala:142)
at com.johnsnowlabs.nlp.annotators.NormalizerModel.<init>(NormalizerModel.scala:21)
at com.johnsnowlabs.nlp.annotators.NormalizerModel.<init>(NormalizerModel.scala:23)
at com.johnsnowlabs.nlp.annotators.Normalizer.train(Normalizer.scala:60)
at com.johnsnowlabs.nlp.annotators.Normalizer.train(Normalizer.scala:16)
at com.johnsnowlabs.nlp.AnnotatorApproach.fit(AnnotatorApproach.scala:33)
at org.apache.spark.ml.Pipeline$$anonfun$fit$2.apply(Pipeline.scala:153)
at org.apache.spark.ml.Pipeline$$anonfun$fit$2.apply(Pipeline.scala:149)
at scala.collection.Iterator$class.foreach(Iterator.scala:893)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
at scala.collection.IterableViewLike$Transformed$class.foreach(IterableViewLike.scala:44)
at scala.collection.SeqViewLike$AbstractTransformed.foreach(SeqViewLike.scala:37)
at org.apache.spark.ml.Pipeline.fit(Pipeline.scala:149)
... 58 elided
Caused by: java.lang.ClassNotFoundException: com.typesafe.config.ConfigMergeable
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 72 more
Many thanks, Maziyar
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
Zeppelin: java.lang.NoClassDefFoundError: org/apache/spark ...
I found the solution by adding the jar. spark-core_2.11-1.5.2.logging.jar.
Read more >Resolve the "java.lang.ClassNotFoundException" in Spark on ...
This error occurs when either of the following conditions is true: The spark-submit job can't find the relevant files in the class path....
Read more >Jdbc hive interpreter failing to run with error " java.lang ...
Solution: For systems in hdp cluster with no internet access local-repo folder doesnt get created when running zeppelin interpreters which hold ...
Read more >NoClassDefFoundError even though packages exists in jar file
I created a WAR file World_5.war for a World5 project by copying all the jar files needed by the project into World5\WEB-INF\lib folder...
Read more >Class org.apache.hive.hcatalog.data.JsonSerDe not found ...
java.lang.ClassNotFoundException: Class org.apache.hive.hcatalog.data.JsonSerDe not found when running zeppelin noteblook in DSXL ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@aburkov please have a look at the release notes, each release has all the fat jars listed at the bottom and hosted on S3.
Why aren’t you using --packages? this downloads all necessary dependencies automatically.
We have realized recently that to use --jars, we need to include the fat-jar (i.e. result of sbt assembly). We’ll be updating the website with the fat-jar to download. but for now you’ll have to clone and assembly yourself