Stream Processing w/ Spark Streaming
Setup This section will first introduce you to the basic system setup of the standalone Spark Streaming programs, and then guide you through the steps necessary to create Twitter authentication tokens necessary for processing Twitter's real time sample stream. System Setup We use a modified version of the Scala standalone project template introduced in the Running Standalone Spark Programs section for the next exercise. In your AMI, this has been setup in /root/streaming/ What is SBT? Simple Build Tool, or SBT, is popular open-source a build tool for Scala and Java projects, written in Scala. Currently, Spark can be built using SBT or Maven, while Spark Streaming an Shark can be built with SBT only. Read more about SBT at its Github page . twitter.txt: For Scala users scala/build.sbt: scala/Tutorial.scala: Main Scala program that you are going to edit, compile and run scala/TutorialHelper.scala: Tutorial.scala java/build.sbt: java/Tutorial.Read full article from Stream Processing w/ Spark Streaming
No comments:
Post a Comment