You can run the old code with the newer version by putting up this config in storm.yaml of client (machine where you submit the topologies from) -
client.jartransformer.class: "org.apache.storm.hack.StormShadeTransformer" On Wed, Apr 13, 2016 at 12:32 PM, anshu shukla <[email protected]> wrote: > Thanks Erik , > > > > On Wed, Apr 13, 2016 at 12:12 PM, Sai Dilip Reddy Kiralam < > [email protected]> wrote: > >> yeah ! thank you erik,I just found that by comparing example codes of >> storm 0.10 and storm 1.0 >> >> >> >> >> *Best regards,* >> >> *K.Sai Dilip Reddy.* >> >> On Wed, Apr 13, 2016 at 12:06 PM, Erik Weathers <[email protected]> >> wrote: >> >>> Storm-1.0.0 represents a major rewrite. One of the changes was to the >>> package paths: backtype.* was changed to org.apache.*. >>> >>> So all previous storm stuff is broken. You need to rebuild the topology >>> to reference org.apache.* instead of backtype.*. Should be a simple string >>> replacement. Here is a sed cmd I used on my mac (note gsed instead of sed): >>> >>> find . -type f -not -path '*/\.*' -not -name '*.class' -print0 | xargs >>> -0 gsed -i 's/backtype/org.apache/g' >>> >>> On Tue, Apr 12, 2016 at 11:29 PM, Sai Dilip Reddy Kiralam < >>> [email protected]> wrote: >>> >>>> Hi All, >>>> >>>> when I tried to run the word count Topology from storm-starter examples >>>> of 0.10 version in the storm 1.0.0 it gives me the error as follow >>>> >>>> .jar=target/storm-starter-0.10.0.jar storm.starter.WordCountTopology >>>> sdf fd >>>> 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 >>>> >>>> why it is giving me the error ? >>>> >>>> >>>> *Best regards,* >>>> >>>> *K.Sai Dilip Reddy.* >>>> >>> >>> >> > > > -- > Thanks & Regards, > Anshu Shukla > -- Regards, Abhishek Agarwal
