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.

Error while building the storm toplogy

Solved Go to solution
Highlighted

Error while building the storm toplogy

Contributor

I am following the link https://community.hortonworks.com/content/kbentry/38457/credit-fraud-prevention-demo-a-guided-tour.h... to test the credit card fraud application. When I run the startdemoservices.sh script it throws me the below error while deploying the storm toplogy

*********************************Deploying Storm Topology... Running: /usr/jdk64/jdk1.8.0_60/bin/java -client -Ddaemon.name= -Dstorm.options= -Dstorm.home=/usr/hdp/2.4.0.0-169/storm -Dstorm.log.dir=/var/log/storm -Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib:/usr/hdp/current/storm-client/lib -Dstorm.conf.file= -cp /usr/hdp/2.4.0.0-169/storm/lib/tools.logging-0.2.3.jar:/usr/hdp/2.4.0.0-169/storm/lib/ambari-metrics-storm-sink.jar:/usr/hdp/2.4.0.0-169/storm/lib/log4j-api-2.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/servlet-api-2.5.jar:/usr/hdp/2.4.0.0-169/storm/lib/clout-1.0.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/javax.servlet-2.5.0.v201103041518.jar:/usr/hdp/2.4.0.0-169/storm/lib/ring-jetty-adapter-1.3.0.jar:/usr/hdp/2.4.0.0-169/storm/lib/oncrpc-1.0.7.jar:/usr/hdp/2.4.0.0-169/storm/lib/kryo-2.21.jar:/usr/hdp/2.4.0.0-169/storm/lib/java.classpath-0.2.2.jar:/usr/hdp/2.4.0.0-169/storm/lib/disruptor-2.10.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/slf4j-api-1.7.7.jar:/usr/hdp/2.4.0.0-169/storm/lib/cheshire-5.3.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/clojure-1.6.0.jar:/usr/hdp/2.4.0.0-169/storm/lib/tools.namespace-0.2.4.jar:/usr/hdp/2.4.0.0-169/storm/lib/ring-core-1.1.5.jar:/usr/hdp/2.4.0.0-169/storm/lib/asm-4.0.jar:/usr/hdp/2.4.0.0-169/storm/lib/commons-codec-1.6.jar:/usr/hdp/2.4.0.0-169/storm/lib/jackson-core-2.3.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/hadoop-auth-2.7.1.2.4.0.0-169.jar:/usr/hdp/2.4.0.0-169/storm/lib/minlog-1.2.jar:/usr/hdp/2.4.0.0-169/storm/lib/ring-servlet-1.3.0.jar:/usr/hdp/2.4.0.0-169/storm/lib/storm-core-0.10.0.2.4.0.0-169.jar:/usr/hdp/2.4.0.0-169/storm/lib/log4j-core-2.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/ns-tracker-0.2.2.jar:/usr/hdp/2.4.0.0-169/storm/lib/zookeeper.jar:/usr/hdp/2.4.0.0-169/storm/lib/hiccup-0.3.6.jar:/usr/hdp/2.4.0.0-169/storm/lib/log4j-over-slf4j-1.6.6.jar:/usr/hdp/2.4.0.0-169/storm/lib/clj-time-0.8.0.jar:/usr/hdp/2.4.0.0-169/storm/lib/compojure-1.1.3.jar:/usr/hdp/2.4.0.0-169/storm/lib/log4j-slf4j-impl-2.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/jackson-dataformat-smile-2.3.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/tigris-0.1.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/core.incubator-0.1.0.jar:/usr/hdp/2.4.0.0-169/storm/lib/reflectasm-1.07-shaded.jar:/usr/hdp/2.4.0.0-169/storm/lib/jline-0.9.94.jar:/usr/hdp/2.4.0.0-169/storm/lib/clj-stacktrace-0.2.7.jar:/usr/hdp/2.4.0.0-169/storm/lib/gmetric4j-1.0.7.jar:/usr/hdp/2.4.0.0-169/storm/lib/ring-json-0.3.1.jar:/usr/hdp/2.4.0.0-169/storm/lib/ring-devel-1.3.0.jar:/home/storm/CreditCardTransactionMonitor-0.0.1-SNAPSHOT.jar:/usr/hdp/current/storm-supervisor/conf:/usr/hdp/2.4.0.0-169/storm/bin -Dstorm.jar=/home/storm/CreditCardTransactionMonitor-0.0.1-SNAPSHOT.jar com.hortonworks.iot.financial.topology.CreditCardTransactionMonitorTopology Sandbox Error: A JNI error has occurred, please check your installation and try again Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/storm/generated/AlreadyAliveException

Please let me know options for fixing this issue.

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Error while building the storm toplogy

Rising Star

Yes, this error is due to Storm version mismatch, seems like you are trying to run 2.5 code on 2.4 and the topology is already deployed.

View solution in original post

5 REPLIES 5
Highlighted

Re: Error while building the storm toplogy

Mentor

It is possible that your topology deployed already, please run storm list command to check its status. Other than that, I'm wondering whether you're running this code on Sandbox 2.5. from the code, looks like you may need Sandbox 2.4.

Re: Error while building the storm toplogy

Rising Star

Yes, this error is due to Storm version mismatch, seems like you are trying to run 2.5 code on 2.4 and the topology is already deployed.

View solution in original post

Highlighted

Re: Error while building the storm toplogy

Contributor

Hi Ambud,

I am using a Microsoft Azure cloud with Horton works sandbox 2.4. I didn't see any storm topology already deployed.

2110 [main] INFO b.s.u.Utils - Using storm.yaml from resources 2139 [main] INFO b.s.u.StormBoundedExponentialBackoffRetry - The baseSleepTimeMs [2000] the maxSleepTimeMs [60000] the maxRetries [5] 2164 [main] INFO b.s.u.StormBoundedExponentialBackoffRetry - The baseSleepTimeMs [2000] the maxSleepTimeMs [60000] the maxRetries [5] No topologies running.

What are options for fixing this issue ? Really looking for a help

Highlighted

Re: Error while building the storm toplogy

Rising Star

Hi @Joby Johny,

The quickest way to fix it is use HDP 2.5 instead of 2.4

Just reviewed the code for the topology and it uses Storm 1.0.1 which is incompatible with Storm 0.10.0 of HDP 2.4

Highlighted

Re: Error while building the storm toplogy

Contributor

I have used the previous version of storm(0.10.0) and was able to create the toplogy. Thank you Ambud and Artem for the help.

Don't have an account?
Coming from Hortonworks? Activate your account here