public class FsJobArchivist extends Object
FileSystem
and reading it back.Modifier and Type | Method and Description |
---|---|
static Path |
archiveJob(Path rootPath,
AccessExecutionGraph graph)
Deprecated.
only kept for legacy reasons
|
static Path |
archiveJob(Path rootPath,
JobID jobId,
Collection<ArchivedJson> jsonToArchive)
Writes the given
AccessExecutionGraph to the FileSystem pointed to by
JobManagerOptions.ARCHIVE_DIR . |
static Collection<ArchivedJson> |
getArchivedJsons(Path file)
Reads the given archive file and returns a
Collection of contained ArchivedJson . |
@Deprecated public static Path archiveJob(Path rootPath, AccessExecutionGraph graph) throws IOException
AccessExecutionGraph
to the FileSystem
pointed to by
JobManagerOptions.ARCHIVE_DIR
.rootPath
- directory to which the archive should be written tograph
- graph to archiveIOException
public static Path archiveJob(Path rootPath, JobID jobId, Collection<ArchivedJson> jsonToArchive) throws IOException
AccessExecutionGraph
to the FileSystem
pointed to by
JobManagerOptions.ARCHIVE_DIR
.rootPath
- directory to which the archive should be written tojobId
- job idjsonToArchive
- collection of json-path pairs to that should be archivedIOException
public static Collection<ArchivedJson> getArchivedJsons(Path file) throws IOException
Collection
of contained ArchivedJson
.file
- archive to extractIOException
- if the file can't be opened, read or doesn't contain valid jsonCopyright © 2014–2020 The Apache Software Foundation. All rights reserved.