StreamingContext.
checkpoint
Sets the context to periodically checkpoint the DStream operations for master fault-tolerance. The graph will be checkpointed every batch interval.
directory – HDFS-compatible directory where the checkpoint data will be reliably stored