storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Xin Wang <data.xinw...@gmail.com>
Subject Re: storm.backtype error
Date Sun, 01 May 2016 12:37:15 GMT
hi Daniela,

In the latest 1.0.0 version, the class packages have been changed from
"backtype.storm" to "org.apache.storm" so the topology code compiled with
older version won't run on the Storm 1.0.0 just like that. Backward
compatibility is available through following configuration

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

You need to add the above config in storm installation if you want to run
the code compiled with older versions of storm. The config should be added
in the machine you use to submit your topologies.

Refer to https://issues.apache.org/jira/browse/STORM-1202 for more details.


2016-05-01 17:55 GMT+08:00 Daniela S <daniela_4444@gmx.at>:

> Hi
>
> I am trying to deploy my first topology in Storm but unfortunately I
> always receive an error message regarding storm.backtype. Currently it is
> the following error message:
>
> bin/storm jar
> /home/daniela/Documents/workspace-sts-3.7.3.RELEASE/storm-example/target/storm-example-0.0.1-SNAPSHOT-jar-with-dependencies.jar
> com.learningstorm.storm_example.LearningStormSingleNodeTopology
> LearningStormSingleNodeTopology
> Running: /usr/lib/jvm/java-8-openjdk-amd64/bin/java -client -Ddaemon.name=
> -Dstorm.options= -Dstorm.home=/home/daniela/storm/apache-storm-1.0.0
> -Dstorm.log.dir=/home/daniela/storm/apache-storm-1.0.0/logs
> -Djava.library.path=/usr/local/lib -Dstorm.conf.file= -cp
> /home/daniela/storm/apache-storm-1.0.0/lib/asm-5.0.3.jar:/home/daniela/storm/apache-storm-1.0.0/lib/log4j-core-2.1.jar:/home/daniela/storm/apache-storm-1.0.0/lib/reflectasm-1.10.1.jar:/home/daniela/storm/apache-storm-1.0.0/lib/minlog-1.3.0.jar:/home/daniela/storm/apache-storm-1.0.0/lib/disruptor-3.3.2.jar:/home/daniela/storm/apache-storm-1.0.0/lib/storm-core-1.0.0.jar:/home/daniela/storm/apache-storm-1.0.0/lib/slf4j-api-1.7.7.jar:/home/daniela/storm/apache-storm-1.0.0/lib/log4j-slf4j-impl-2.1.jar:/home/daniela/storm/apache-storm-1.0.0/lib/log4j-over-slf4j-1.6.6.jar:/home/daniela/storm/apache-storm-1.0.0/lib/objenesis-2.1.jar:/home/daniela/storm/apache-storm-1.0.0/lib/log4j-api-2.1.jar:/home/daniela/storm/apache-storm-1.0.0/lib/storm-rename-hack-1.0.0.jar:/home/daniela/storm/apache-storm-1.0.0/lib/servlet-api-2.5.jar:/home/daniela/storm/apache-storm-1.0.0/lib/clojure-1.7.0.jar:/home/daniela/storm/apache-storm-1.0.0/lib/kryo-3.0.3.jar:/home/daniela/Documents/workspace-sts-3.7.3.RELEASE/storm-example/target/storm-example-0.0.1-SNAPSHOT-jar-with-dependencies.jar:/home/daniela/storm/apache-storm-1.0.0/conf:/home/daniela/storm/apache-storm-1.0.0/bin
> -Dstorm.jar=/home/daniela/Documents/workspace-sts-3.7.3.RELEASE/storm-example/target/storm-example-0.0.1-SNAPSHOT-jar-with-dependencies.jar
> com.learningstorm.storm_example.LearningStormSingleNodeTopology
> LearningStormSingleNodeTopology
> Error: A JNI error has occurred, please check your installation and try
> again
> Exception in thread "main" java.lang.NoClassDefFoundError:
> backtype/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:
> backtype.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
>
> Does anyone have an idea how to solve this problem?
>
> Thank you very much in advance.
>
> Regards,
> Daniela
>

Mime
View raw message