Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

NoClassDefFoundError in org.apache.storm.kafka.spout.KafkaSpout:1.2.1.3.3.1.0-10

SOLVED Go to solution
Highlighted

NoClassDefFoundError in org.apache.storm.kafka.spout.KafkaSpout:1.2.1.3.3.1.0-10

New Contributor

Hi all,

I had built up a HDF 3.3.1.0 with ambari, but I got NoClassDefFoundError when I'm building a data processing kafka to druid by Streaming Analytics Manager, how to fix it?


My environment:

Storm:1.2.1
SAM: 0.6.0
Kafka: 1.0.0.3.1
Druid: 0.12.1


Below is the logs in storm worker.


java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/JsonProcessingException
at org.apache.storm.kafka.spout.KafkaSpout.open(KafkaSpout.java:142) ~[dep-org.apache.storm-storm-kafka-client-jar-1.2.1.3.3.1.0-10.jar.1555487788000:1.2.1.3.3.1.0-10]
at org.apache.storm.daemon.executor$fn__10149$fn__10164.invoke(executor.clj:615) ~[storm-core-1.2.1.3.1.0.0-78.jar:1.2.1.3.1.0.0-78]
at org.apache.storm.util$async_loop$fn__1221.invoke(util.clj:482) [storm-core-1.2.1.3.1.0.0-78.jar:1.2.1.3.1.0.0-78]
at clojure.lang.AFn.run(AFn.java:22) [clojure-1.7.0.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112]
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.JsonProcessingException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[?:1.8.0_112]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_112]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_112]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_112]
... 5 more

Thank you very much for your help.


Best regards,

DADA

1 ACCEPTED SOLUTION

Accepted Solutions

Re: NoClassDefFoundError in org.apache.storm.kafka.spout.KafkaSpout:1.2.1.3.3.1.0-10

New Contributor

Hi all,
I had resolved this problem by add missing jar files to "/usr/hdp/3.1.0.0-78/storm/lib/" .

Thanks.

1 REPLY 1

Re: NoClassDefFoundError in org.apache.storm.kafka.spout.KafkaSpout:1.2.1.3.3.1.0-10

New Contributor

Hi all,
I had resolved this problem by add missing jar files to "/usr/hdp/3.1.0.0-78/storm/lib/" .

Thanks.