public class CheckpointingUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CHECKPOINT_DATA_POSTFIX
If at the end of a checkpoint file,
indicates that we store WorkerContext and aggregator handler data.
|
static String |
CHECKPOINT_FINALIZED_POSTFIX
If at the end of a checkpoint file, indicates the stitched checkpoint
file prefixes.
|
static String |
CHECKPOINT_METADATA_POSTFIX
If at the end of a checkpoint file, indicates metadata
|
static String |
CHECKPOINT_VALID_POSTFIX
If at the end of a checkpoint file, indicates metadata and data is valid
for the same filenames without .valid
|
static String |
CHECKPOINT_VERTICES_POSTFIX
If at the end of a checkpoint file, indicates vertices, edges,
messages, etc.
|
Modifier and Type | Method and Description |
---|---|
static String |
getCheckpointBasePath(org.apache.hadoop.conf.Configuration conf,
String jobId)
Path to the checkpoint's root (including job id)
|
static org.apache.hadoop.fs.Path |
getCheckpointMarkPath(org.apache.hadoop.conf.Configuration conf,
String jobId)
Path to checkpoint&halt node in hdfs.
|
static long |
getLastCheckpointedSuperstep(org.apache.hadoop.fs.FileSystem fs,
String checkpointBasePath)
Get the last saved superstep.
|
public static final String CHECKPOINT_METADATA_POSTFIX
public static final String CHECKPOINT_VERTICES_POSTFIX
public static final String CHECKPOINT_VALID_POSTFIX
public static final String CHECKPOINT_DATA_POSTFIX
public static final String CHECKPOINT_FINALIZED_POSTFIX
public static String getCheckpointBasePath(org.apache.hadoop.conf.Configuration conf, String jobId)
conf
- Immutable configuration of the jobjobId
- job IDpublic static org.apache.hadoop.fs.Path getCheckpointMarkPath(org.apache.hadoop.conf.Configuration conf, String jobId)
conf
- Immutable configuration of the jobjobId
- job IDpublic static long getLastCheckpointedSuperstep(org.apache.hadoop.fs.FileSystem fs, String checkpointBasePath) throws IOException
fs
- file system where checkpoint is stored.checkpointBasePath
- path to checkpoints folderIOException
Copyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.