Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
val sparkConf = new SparkConf().setAppName("RecoverableNetworkWordCount")
// Create the context with a 1 second batch size
val ssc = new StreamingContext(sparkConf, Seconds(1))
ssc.checkpoint("/path/to/checkpoint")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment