@InterfaceStability.Unstable public class HdfsManifestToResourcesPlugin extends org.apache.hadoop.service.AbstractService implements RuncManifestToResourcesPlugin
RuncContainerRuntime
that maps runC image manifests into their associated config and
layers that are located in HDFS.| Constructor and Description |
|---|
HdfsManifestToResourcesPlugin() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.yarn.api.records.LocalResource |
getConfigResource(ImageManifest manifest) |
List<org.apache.hadoop.yarn.api.records.LocalResource> |
getLayerResources(ImageManifest manifest) |
org.apache.hadoop.yarn.api.records.LocalResource |
getResource(ImageManifest.Blob blob,
String dir,
String expectedMediaType,
String expectedHashAlgorithm,
String resourceSuffix) |
void |
serviceInit(org.apache.hadoop.conf.Configuration configuration) |
void |
serviceStart() |
protected org.apache.hadoop.fs.FileStatus |
statBlob(org.apache.hadoop.fs.Path path) |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic void serviceInit(org.apache.hadoop.conf.Configuration configuration)
serviceInit in class org.apache.hadoop.service.AbstractServicepublic void serviceStart()
throws IOException
serviceStart in class org.apache.hadoop.service.AbstractServiceIOExceptionpublic List<org.apache.hadoop.yarn.api.records.LocalResource> getLayerResources(ImageManifest manifest) throws IOException
getLayerResources in interface RuncManifestToResourcesPluginIOExceptionpublic org.apache.hadoop.yarn.api.records.LocalResource getConfigResource(ImageManifest manifest) throws IOException
getConfigResource in interface RuncManifestToResourcesPluginIOExceptionpublic org.apache.hadoop.yarn.api.records.LocalResource getResource(ImageManifest.Blob blob, String dir, String expectedMediaType, String expectedHashAlgorithm, String resourceSuffix) throws IOException
IOExceptionprotected org.apache.hadoop.fs.FileStatus statBlob(org.apache.hadoop.fs.Path path)
throws IOException
IOExceptionCopyright © 2008–2024 Apache Software Foundation. All rights reserved.