Apache Spark streaming example project with Twitter streaming API:
https://spark.apache.org/streaming/
- Rename twitter4j.properties.example to twitter4j.properties
- Open https://apps.twitter.com and create keys for your app
- Set keys in twitter4j.properties
./sbt/sbt - script will download correct dependencies.