Skip to content

Storm topology to stream tweets and to store both in HDFS and Hive

Notifications You must be signed in to change notification settings

pvillard31/storm-twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

storm-twitter

Storm topology to stream tweets to store both in HDFS (using HdfsBolt) and Hive (using HiveBolt).

Presentation

The idea of this topology is to define a set of keywords for which we want to analyze the trend along the time. Inside the topology class, it is possible to define the keywords for which we want to collect the tweets, and also to define the frequency (tick) at which we want our analysis granularity. This is also the place where are configured the parameters regarding HDFS and Hive.

Topology

Deployment

Checkout the code and build it with maven using :

clean package

To run the topology :

storm jar storm-twitter-0.0.1-SNAPSHOT.jar fr.pvillard.storm.topology.Topology <local|cluster> <consumer key> <consumer key secret> <access token key> <access token secret>

Create the tweet_counts Hive table corresponding to your needs :

CREATE TABLE tweet_counts(filter string, tickdate timestamp, totalcount int)
CLUSTERED BY (filter) INTO 5 BUCKETS
STORED AS ORC;

Example

What we can view in the Hive view in Ambari (Hortonworks distribution) :

Hive view

About

Storm topology to stream tweets and to store both in HDFS and Hive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages