Skip to content

FileContextBasedCheckpointFileManager

FileContextBasedCheckpointFileManager is a CheckpointFileManager that uses FileContext (Apache Hadoop).

FileContextBasedCheckpointFileManager is the default CheckpointFileManager (unless spark.sql.streaming.checkpointFileManagerClass is defined) as HDFS's FileContext.rename() gives atomic renames, which is used for createAtomic.

Creating Instance

FileContextBasedCheckpointFileManager takes the following to be created:

FileContextBasedCheckpointFileManager is created when:

createAtomic

createAtomic(
  path: Path,
  overwriteIfPossible: Boolean): CancellableFSDataOutputStream

createAtomic is part of the CheckpointFileManager abstraction.


createAtomic creates a RenameBasedFSDataOutputStream.