47. Spark Streaming Overview
SPARK STREAMING
Spark Streaming
val stream = new StreamingContext(conf, Seconds(1)) val lines = stream.sockTextStream("localhost", 8888) val errors = lines.filter(_.contains("error")) errors.print()stream.start() stream.awaitTermination()
Let's Stream
Need A Twitter Developer Account.
Create A Twitter.txt File In Your WorkSpace
Step One
Step Two
Step Three
Step Four
Step Five
Step Six
Let's See It In Action
Previous46. [Activity] Using DataFrames with MLLibNext48. [Activity] Set up a Twitter Developer Account, and Stream Tweets
Last updated