Class HdfsManifestToResourcesPlugin
java.lang.Object
org.apache.hadoop.service.AbstractService
org.apache.hadoop.yarn.server.nodemanager.containermanager.linux.runtime.runc.HdfsManifestToResourcesPlugin
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.service.Service,RuncManifestToResourcesPlugin
@Unstable
public class HdfsManifestToResourcesPlugin
extends org.apache.hadoop.service.AbstractService
implements RuncManifestToResourcesPlugin
This class is a plugin for the
RuncContainerRuntime
that maps runC image manifests into their associated config and
layers that are located in HDFS.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.service.Service
org.apache.hadoop.service.Service.STATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.api.records.LocalResourcegetConfigResource(ImageManifest manifest) List<org.apache.hadoop.yarn.api.records.LocalResource>getLayerResources(ImageManifest manifest) org.apache.hadoop.yarn.api.records.LocalResourcegetResource(ImageManifest.Blob blob, String dir, String expectedMediaType, String expectedHashAlgorithm, String resourceSuffix) voidserviceInit(org.apache.hadoop.conf.Configuration configuration) voidprotected org.apache.hadoop.fs.FileStatusstatBlob(org.apache.hadoop.fs.Path path) Methods inherited from class org.apache.hadoop.service.AbstractService
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, serviceStop, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.service.Service
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, registerServiceListener, start, stop, unregisterServiceListener, waitForServiceToStop
-
Constructor Details
-
HdfsManifestToResourcesPlugin
public HdfsManifestToResourcesPlugin()
-
-
Method Details
-
serviceInit
public void serviceInit(org.apache.hadoop.conf.Configuration configuration) - Overrides:
serviceInitin classorg.apache.hadoop.service.AbstractService
-
serviceStart
- Overrides:
serviceStartin classorg.apache.hadoop.service.AbstractService- Throws:
IOException
-
getLayerResources
public List<org.apache.hadoop.yarn.api.records.LocalResource> getLayerResources(ImageManifest manifest) throws IOException - Specified by:
getLayerResourcesin interfaceRuncManifestToResourcesPlugin- Throws:
IOException
-
getConfigResource
public org.apache.hadoop.yarn.api.records.LocalResource getConfigResource(ImageManifest manifest) throws IOException - Specified by:
getConfigResourcein interfaceRuncManifestToResourcesPlugin- Throws:
IOException
-
getResource
public org.apache.hadoop.yarn.api.records.LocalResource getResource(ImageManifest.Blob blob, String dir, String expectedMediaType, String expectedHashAlgorithm, String resourceSuffix) throws IOException - Throws:
IOException
-
statBlob
protected org.apache.hadoop.fs.FileStatus statBlob(org.apache.hadoop.fs.Path path) throws IOException - Throws:
IOException
-