Spark function to explain: checkpoint
Set the checkpoint for the current RDD. The function will create a binary file and store it in the checkpoint directory, which is set with Context.setCheckpointDir (). During the checkpoint process, all of the RDD-dependent information in the parent RDD will be all removed. A checkpoint operation on RDD is not performed immediately and an Action must be performed to trigger it.