@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, waitForServiceToStop
public void serviceInit(org.apache.hadoop.conf.Configuration configuration)
serviceInit
in class org.apache.hadoop.service.AbstractService
public void serviceStart() throws IOException
serviceStart
in class org.apache.hadoop.service.AbstractService
IOException
public List<org.apache.hadoop.yarn.api.records.LocalResource> getLayerResources(ImageManifest manifest) throws IOException
getLayerResources
in interface RuncManifestToResourcesPlugin
IOException
public org.apache.hadoop.yarn.api.records.LocalResource getConfigResource(ImageManifest manifest) throws IOException
getConfigResource
in interface RuncManifestToResourcesPlugin
IOException
public org.apache.hadoop.yarn.api.records.LocalResource getResource(ImageManifest.Blob blob, String dir, String expectedMediaType, String expectedHashAlgorithm, String resourceSuffix) throws IOException
IOException
protected org.apache.hadoop.fs.FileStatus statBlob(org.apache.hadoop.fs.Path path) throws IOException
IOException
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.