public interface PermanentBlobService extends Closeable
These may include per-job BLOBs that are covered by high-availability (HA) mode, e.g. a job's
JAR files or (parts of) an off-loaded TaskDeploymentDescriptor
or files in the DistributedCache
.
Modifier and Type | Method and Description |
---|---|
File |
getFile(JobID jobId,
PermanentBlobKey key)
Returns the path to a local copy of the file associated with the provided job ID and blob
key.
|
File getFile(JobID jobId, PermanentBlobKey key) throws IOException
jobId
- ID of the job this blob belongs tokey
- BLOB key associated with the requested fileFileNotFoundException
- if the BLOB does not exist;IOException
- if any other error occurs when retrieving the fileCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.