cloudera / cdh-twitter-example

Example application for analyzing Twitter data using CDH - Flume, Oozie, Hive
288 stars 342 forks source link

Addressing flume twitter source to work properly for Sampling #9

Closed vamseeyarla closed 10 years ago

vamseeyarla commented 10 years ago

Based on the existing code, if a user doesn't supply the TwitterSourceConstants.KEYWORDS_KEY property (then it is intended to use twitter sampling instead of filtering). But, the exsiting code will still run filtering as

String keywordString = ""; String[] keywords = keywordString.split(","); The result of the above statement is an array of size 1, which is not expected based on the implementation of code.