I am also running into the same problem. Any thoughts or directions would be helpful.
On Tuesday, August 28, 2012 5:05:41 PM UTC-7, Kevin Shin wrote:
I am using Nathan's code for SqsQueueSpout.java and have a subclass just to implement a simple messageToStormTuple() function. Without any bolts, the spout runs perfectly and reads the data from SQS and emits. Once I add a simple bolt to just print out statements:
public void execute(Tuple tuple, BasicOutputCollector collector) {
System.out.println("Emitting Bolt Execution");
}
I ran into an exception:
InvalidTopologyException(msg:Component: [count] subscribes from non-existent stream: [default] of component [words])
No words are emitted from the spout and it seems the spout/bolt is never initialized. The topology initialization code is set below as shown:
TopologyBuilder topology_builder = new TopologyBuilder();
topology_builder.setSpout("words", new SubbedSqsSpout("URL", false)); // URL Replaced
topology_builder.setBolt("count", new CountBolt()).globalGrouping("words");
I just seem to be running into problems connecting the Bolt to the Spout. I'm only sending a few messages through SQS in the queue for testing, any thoughts?
Thanks!
Kevin