pyspark.SparkContext.setCheckpointDir

SparkContext.setCheckpointDir(dirName: str) → None

Set the directory under which RDDs are going to be checkpointed. The directory must be an HDFS path if running on a cluster.