A sample Code to find Average length of tweets in Twitter.
HBASE database : with table name "twitter"
and a column family "json"
feeded with twitter api stream
.
Each row name starts with tweet
Used Happybase to connect
HBASE Database structure is mentioned in
- Takes length of each Tweet.
- find average by Reducing It.