Hi Connie,
You can take a look at twittersamplespout in
examples [1]https://github.com/apache/incubator-storm/blob/mast
er/examples/storm-starter/src/jvm/storm/starter/spout/TwitterSa
mpleSpout.java
It uses twitter4j to read the api you can make changes to fit
your needs.
-Harsha
On Mon, Sep 8, 2014, at 12:15 AM, Vikas Agarwal wrote:
I guess no and it won't make sense to have one because it would
limit the parallelism of spout. Twitter stream allows only
single connection to the stream. You can use threading to have
parallelism in stream consumption but it would be difficult to
manage it with spouts. Better solution would be to writer
standalone twitter stream listener with multithreading and push
messages to Kafka (or some JMS queue) and then consume them
using KafkaSpout for instance. It would allow you to increase
parallelism of spout by the number of partitions of the topics.
On Mon, Sep 8, 2014 at 12:21 PM, Connie Yang
<[2][email protected]> wrote:
Hi,
Is there a spout that stream tweeter feed based a list of
hashtags?
Thanks,
Connie
--
Regards,
Vikas Agarwal
91 – 9928301411
InfoObjects, Inc.
Execution Matters
[3]http://www.infoobjects.com
2041 Mission College Boulevard, #280
Santa Clara, CA 95054
+1 (408) 988-2000 Work
+1 (408) 716-2726 Fax
References
1.
https://github.com/apache/incubator-storm/blob/master/examples/storm-starter/src/jvm/storm/starter/spout/TwitterSampleSpout.java
2. mailto:[email protected]
3. http://www.infoobjects.com/