Created
March 23, 2019 18:44
-
-
Save adekunleba/ff97b4f7bbe8614155d86462458fa3ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val streamingContext: StreamingContext = new StreamingContext(sparkContext, Seconds(20)) | |
val lines: ReceiverInputDStream[String] = streamingContext.socketTextStream("localhost", 9999) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment