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.

Description

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.

Usage

setCheckpointDir(sc, dirName)

Arguments

sc

Spark Context to use

dirName

Directory path

Examples

## Not run: 
##D sc <- sparkR.init()
##D setCheckpointDir(sc, "~/checkpoints")
##D rdd <- parallelize(sc, 1:2, 2L)
##D checkpoint(rdd)
## End(Not run)

[Package SparkR version 0.1 Index]