Interface LinuxContainerRuntime
- All Superinterfaces:
ContainerRuntime
- All Known Implementing Classes:
DefaultLinuxContainerRuntime,DelegatingLinuxContainerRuntime,DockerLinuxContainerRuntime,JavaSandboxLinuxContainerRuntime,OCIContainerRuntime,RuncContainerRuntime
Linux-specific container runtime implementations must implement this
interface.
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalResources(Container container) voidinitialize(org.apache.hadoop.conf.Configuration conf, Context nmContext) Initialize the runtime.booleanisRuntimeRequested(Map<String, String> env) Return whether the given environment variables indicate that the operation is requesting this runtime.default voidstart()default voidstop()Methods inherited from interface org.apache.hadoop.yarn.server.nodemanager.containermanager.runtime.ContainerRuntime
execContainer, getExposedPorts, getIpAndHost, launchContainer, prepareContainer, reapContainer, relaunchContainer, signalContainer
-
Method Details
-
initialize
void initialize(org.apache.hadoop.conf.Configuration conf, Context nmContext) throws ContainerExecutionException Initialize the runtime.- Parameters:
conf- theConfigurationto usenmContext- NMContext- Throws:
ContainerExecutionException- if an error occurs while initializing the runtime
-
isRuntimeRequested
Return whether the given environment variables indicate that the operation is requesting this runtime.- Parameters:
env- the environment variable settings for the operation- Returns:
- whether this runtime is requested
-
start
default void start() -
stop
default void stop() -
getLocalResources
default Map<String,org.apache.hadoop.yarn.api.records.LocalResource> getLocalResources(Container container) throws IOException - Throws:
IOException
-