storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sai Dilip Reddy Kiralam <dkira...@aadhya-analytics.com>
Subject Re: Any trick to getting example storm starter to work?
Date Wed, 27 Apr 2016 04:29:26 GMT
if your running the code 0.10 version on the storm 1.0.0 version then it
will show the same type of error because the package (name space) of storm
is changed in this version.if I'm correct just add up the following line in
storm.yaml file and try to run the code.

client.jartransformer.class: "org.apache.storm.hack.StormShadeTransformer"



*Best regards,*

*K.Sai Dilip Reddy.*

On Wed, Apr 27, 2016 at 9:38 AM, Sai Dilip Reddy Kiralam <
dkiralam@aadhya-analytics.com> wrote:

> on which version of storm your running the code ? what is storm version
> you installed?
>
>
>
> *Best regards,*
>
> *K.Sai Dilip Reddy.*
>
> On Wed, Apr 27, 2016 at 3:00 AM, Joaquin Menchaca <jmenchaca@gobalto.com>
> wrote:
>
>> I was able to successfully compile (mvn clean install) storm starter
>> examples from the 0.10.0 (i.e.
>> http://www.apache.org/dyn/closer.lua/storm/apache-storm-0.10.0/apache-storm-0.10.0.zip
>> )
>>
>> I was wondering if there's something else I can do to run these,
>> something else I need to compile?  I attempted to run the
>> ExclamationTopology as per instructions.
>>
>> $ storm jar target/storm-starter-*.jar org.apache.storm.starter.ExclamationTopology
>> Running: /usr/lib/jvm/java-8-oracle/bin/java -client -Ddaemon.name= -Dstorm.options=
-Dstorm.home=/usr/lib/apache/storm/0.10.0 -Dstorm.log.dir=/usr/lib/apache/storm/0.10.0/logs
-Djava.library.path=/usr/local/lib:/opt/local/lib:/usr/lib -Dstorm.conf.file= -cp /usr/lib/apache/storm/0.10.0/lib/log4j-api-2.1.jar:/usr/lib/apache/storm/0.10.0/lib/hadoop-auth-2.4.0.jar:/usr/lib/apache/storm/0.10.0/lib/slf4j-api-1.7.7.jar:/usr/lib/apache/storm/0.10.0/lib/log4j-slf4j-impl-2.1.jar:/usr/lib/apache/storm/0.10.0/lib/clojure-1.6.0.jar:/usr/lib/apache/storm/0.10.0/lib/log4j-over-slf4j-1.6.6.jar:/usr/lib/apache/storm/0.10.0/lib/asm-4.0.jar:/usr/lib/apache/storm/0.10.0/lib/servlet-api-2.5.jar:/usr/lib/apache/storm/0.10.0/lib/log4j-core-2.1.jar:/usr/lib/apache/storm/0.10.0/lib/disruptor-2.10.4.jar:/usr/lib/apache/storm/0.10.0/lib/minlog-1.2.jar:/usr/lib/apache/storm/0.10.0/lib/kryo-2.21.jar:/usr/lib/apache/storm/0.10.0/lib/storm-core-0.10.0.jar:/usr/lib/apache/storm/0.10.0/lib/reflectasm-1.07-shaded.jar:target/storm-starter-1.0.0.jar:/usr/lib/apache/storm/0.10.0/conf:/usr/lib/apache/storm/0.10.0/bin
-Dstorm.jar=target/storm-starter-1.0.0.jar org.apache.storm.starter.ExclamationTopology
>> Error: A JNI error has occurred, please check your installation and try again
>> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/storm/topology/IRichSpout
>> 	at java.lang.Class.getDeclaredMethods0(Native Method)
>> 	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
>> 	at java.lang.Class.privateGetMethodRecursive(Class.java:3048)
>> 	at java.lang.Class.getMethod0(Class.java:3018)
>> 	at java.lang.Class.getMethod(Class.java:1784)
>> 	at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544)
>> 	at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:526)
>> Caused by: java.lang.ClassNotFoundException: org.apache.storm.topology.IRichSpout
>> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
>> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
>> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
>> 	... 7 more
>>
>>
>> - Joquin
>> --
>>
>> 是故勝兵先勝而後求戰,敗兵先戰而後求勝。
>>
>
>

Mime
View raw message