Apache Spark Twitter streaming

601 Views Asked by At

I have an application that makes it possible for users to add hashtags that will be followed on Twitter and also to follow other users if they have Twitter accounts registered on the application. These functionalities are implemented using twitter4j. However, since I'm redesigning application at the moment I wanted to improve it and implement using Apache Spark Twitter streaming, so I have two questions about it:

1) Is it possible to create filter with users twitter ids that I want to follow? 2) Since application makes it possible for end users to add new hashtags often, my current implementation has been implemented in such a way that each time new hashtag has been added, twitter stream has to be stopped and initialized again. Is there any more efficient way to add new hashtags without interrupting stream, or that is the only way to add new hashtag?

Thanks,

Zoran

0

There are 0 best solutions below