Skip to content

mapr-emea/twitter-sentiment-analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Sentiment Analysis

Retrieve tweets using Spark Streaming,
language detection & sentiment analysis (StanfordNLP),
live dashboard using Kibana. Ingest the tweets to MapR-DB.

Launch:

# Compile the Twitter Sentiment Analysis jar
JAVA_OPTS=-Xmx2G sbt assembly

# Create a table in MapR-DB to store the Twitter messages plus the sentiment analysis result
su - mapr
hbase shell
create 'twitter_sentiment', 'TwitterSentiment'

# Launch the Twitter capture and store the messages in MapR-DB & Elasticsearch
su - mapr

/opt/mapr/spark/spark-*/bin/spark-submit \
--class com.github.vspiewak.TwitterSentimentAnalysis \
--master local[2] \
target/twitter-sentiment-analysis-assembly-0.1-SNAPSHOT.jar \
<consumer_key> \
<consumer_secret> \
<access_token> \
<access_token_secret> \
<maprdbandelastic|maprdbjsonandelastic|maprdbonly|maprdbjsononly|elasticonly> \
</path/to/maprdb-binary-table> \
<ColumnFamily> \
/user/mapr/out \
[<filters>]

About

Twitter Sentiment using Spark + MapRDB + Drill + ES + Kibana

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 79.3%
  • Shell 20.7%