FAQ
Hello Nathan,

I was able to successfully build the jar file for the realODMatrixTopo in
maven. Iwhen I try and submit to the cluster using

storm jar realODMatrix-0.0.1-SNAPSHOT.jar
main.java.realODMatrix.realODMatrixTopology realOD

I got error:

Exception in thread "main" java.lang.NoSuchMethodError:
backtype.storm.topology.TopologyBuilder.setSpout(Ljava/lang/String;Lbacktype/storm/topology/IRichSpout;Ljava/lang/Integer;)Lbacktype/storm/topology/SpoutDeclarer;
at
main.java.realODMatrix.realODMatrixTopology.main(realODMatrixTopology.java:43)

my code in line 43 is: builder.setSpout("spout", fieldSpout, 2);

and my FieldSpout extends form BaseRichSpot not IRichSpout

public class FieldListenerSpout extends BaseRichSpout {}

I got an error which is similar to
https://groups.google.com/forum/?fromgroups=#!topic/storm-user/tIRnt5jNT3s

So I thought I was a bug.


On Monday, July 9, 2012 8:16:58 AM UTC+8, nathanmarz wrote:

That topology is defined for an older version of Storm. You would have to
upgrade the topology. There were some new methods added to the spout
interface since that version. An easy fix is to make that spout extend
BaseRichSpout instead of implementing IRichSpout.


On Sun, Jul 8, 2012 at 5:13 PM, OakStream <mdoa...@gmail.com <javascript:>
wrote:
Hello,
I was able to successfully build the jar file for the RDBMSDumperTopology
(in contrib). I've cd'd into the target directory and when I try and
submit to the cluster using

storm jar storm-rdbms-0.1-SNAPSHOT.jar
storm.contrib.rdbms.RDBMSDumperTopology

(I'm using storm 0.7.4)

I get an error
..
.
.

/storm-0.7.4/lib/servlet-api-2.5.jar:storm-rdbms-0.1-SNAPSHOT.jar:/home/storm/.storm:/home/storm/storm-0.7.4/bin
storm.contrib.rdbms.RDBMSDumperTopology
Exception in thread "main" java.lang.NoSuchMethodError:
backtype.storm.topology.TopologyBuilder.setSpout(Ljava/lang/String;Lbacktype/storm/topology/IRichSpout;Ljava/lang/Integer;)V
at
storm.contrib.rdbms.RDBMSDumperTopology.main(RDBMSDumperTopology.java:41)
[storm@laptop2 target]$

Line 41 in this source file is

//set the spout for the topology
builder.setSpout("spout", new SampleSpout(), 10);

IThe SampleSpout.class seems to be in the correct location.




[storm@laptop2 rdbms]$ ls -lrt
total 24
-rw-rw-r-- 1 storm storm 2972 Jul 8 19:33 SampleSpout.class
-rw-rw-r-- 1 storm storm 2606 Jul 8 19:33 RDBMSDumperTopology.class
-rw-rw-r-- 1 storm storm 3904 Jul 8 19:33 RDBMSDumperBolt.class
-rw-rw-r-- 1 storm storm 1282 Jul 8 19:33 RDBMSConnector.class
-rw-rw-r-- 1 storm storm 4592 Jul 8 19:33 RDBMSCommunicator.class
[storm@laptop2 rdbms]$ date
Sun Jul 8 20:10:58 EDT 2012
[storm@laptop2 rdbms]$ pwd
/home/storm/contrib/storm-rdbms/target/classes/storm/contrib/rdbms
[storm@laptop2 rdbms]$



I'm wondering if I'm submitting my topology correctly or possibly I need
my CLASSPATH or something else set up.

Thanks again for your help!

Mike


--
Twitter: @nathanmarz
http://nathanmarz.com

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupstorm-user @
postedJan 13, '13 at 5:32a
activeJan 13, '13 at 5:32a
posts1
users1
websitestorm-project.net
irc#storm-user

1 user in discussion

Richard Chen: 1 post

People

Translate

site design / logo © 2022 Grokbase