setCheckpointDir {SparkR} | R Documentation |
Set the checkpoint directory
Set the directory under which RDDs are going to be checkpointed. The directory must be a HDFS path if running on a cluster.
setCheckpointDir(sc, dirName)
sc |
Spark Context to use |
dirName |
Directory path |
## Not run:
##D sc <- sparkR.init()
##D setCheckpointDir(sc, "~/checkpoints")
##D rdd <- parallelize(sc, 1:2, 2L)
##D checkpoint(rdd)
## End(Not run)