Skip to content

Commit 96fe274

Browse files
committed
Update RecoverableNetworkWordCount.scala
Trying this example, I missed the moment when the checkpoint was iniciated
1 parent 14f222f commit 96fe274

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/src/main/scala/org/apache/spark/examples/streaming/RecoverableNetworkWordCount.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ object RecoverableNetworkWordCount {
116116
() => {
117117
createContext(ip, port, outputPath)
118118
})
119+
ssc.checkpoint(checkpointDirectory)
119120
ssc.start()
120121
ssc.awaitTermination()
121122
}

0 commit comments

Comments
 (0)