cloudera / cdh-twitter-example

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

Fix keywords size when keywordString is empty #8

Closed anthonycorbacho closed 6 years ago

anthonycorbacho commented 10 years ago

Hi, If I set TwitterAgent.sources.Twitter.keywords = the actual implementation will still try to use twitterStream.filter() instead of twitterStream.sample(). The if/else statement is here to fix this little problem.