From dffb7bfe6cd2292162f08ec0bded736bc5194c3f Mon Sep 17 00:00:00 2001 From: Shane Kumpf Date: Wed, 5 Sep 2018 06:47:54 -0600 Subject: [PATCH] YARN-8638. Allow linux container runtimes to be pluggable. Contributed by Craig Condit --- .../hadoop/yarn/conf/YarnConfiguration.java | 5 +- .../runtime/DefaultLinuxContainerRuntime.java | 8 ++ .../DelegatingLinuxContainerRuntime.java | 105 +++++++++++++----- .../runtime/DockerLinuxContainerRuntime.java | 5 + .../JavaSandboxLinuxContainerRuntime.java | 4 +- .../linux/runtime/LinuxContainerRuntime.java | 11 ++ .../runtime/MockLinuxContainerRuntime.java | 61 ++++++++++ .../TestDelegatingLinuxContainerRuntime.java | 71 +++++++++--- 8 files changed, 225 insertions(+), 45 deletions(-) create mode 100644 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/linux/runtime/MockLinuxContainerRuntime.java diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java index d525e4d2f4e..d681c03abbd 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/conf/YarnConfiguration.java @@ -1865,7 +1865,7 @@ public class YarnConfiguration extends Configuration { /** * Comma separated list of runtimes that are allowed when using - * LinuxContainerExecutor. The allowed values are: + * LinuxContainerExecutor. The standard values are: *