java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.transport.client.PreBuiltTransportClient

java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.transport.client.PreBuiltTransportClient
at storm.packetstorm.ESBolt.prepare(ESBolt.java:176) ~[enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]
at org.apache.storm.daemon.executor$fn__7945$fn__7958.invoke(executor.clj:795) ~[enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]
at org.apache.storm.util$async_loop$fn__625.invoke(util.clj:482) [enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]
at clojure.lang.AFn.run(AFn.java:22) [enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_121]
7693 [Thread-21-es-writer-cardinalities-executor[7 7]] ERROR o.a.s.util - Async loop died!
java.lang.NoClassDefFoundError: org/elasticsearch/plugins/NetworkPlugin
at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_121]
at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_121]
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.8.0_121]
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467) ~[?:1.8.0_121]
at java.net.URLClassLoader.access$100(URLClassLoader.java:73) ~[?:1.8.0_121]
at java.net.URLClassLoader$1.run(URLClassLoader.java:368) ~[?:1.8.0_121]
at java.net.URLClassLoader$1.run(URLClassLoader.java:362) ~[?:1.8.0_121]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_121]
at java.net.URLClassLoader.findClass(URLClassLoader.java:361) ~[?:1.8.0_121]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[?:1.8.0_121]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[?:1.8.0_121]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[?:1.8.0_121]
at org.elasticsearch.transport.client.PreBuiltTransportClient.(PreBuiltTransportClient.java:84) ~[enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]
at storm.packetstorm.ESBolt.prepare(ESBolt.java:176) ~[enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]
at org.apache.storm.daemon.executor$fn__7945$fn__7958.invoke(executor.clj:795) ~[enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]
at org.apache.storm.util$async_loop$fn__625.invoke(util.clj:482) [enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]
at clojure.lang.AFn.run(AFn.java:22) [enrich-topology-0.2.0-SNAPSHOT-jar-with-dependencies.jar:?]


Getting above error even after adding maven dependency. Am I still missing something ??I am using elasticsearch 5.2.2. any help will be greatly appreciated.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.