From fb00794368e0aa7aafa9dfc8d453810f641b82b2 Mon Sep 17 00:00:00 2001 From: Karthik Kambatla Date: Sat, 26 Dec 2015 20:22:16 -0800 Subject: [PATCH] YARN-2882. Add an OPPORTUNISTIC ExecutionType. (Konstantinos Karanasos and Inigo Goiri via kasha) --- hadoop-yarn-project/CHANGES.txt | 3 ++ .../yarn/api/records/ContainerStatus.java | 24 +++++++++++ .../yarn/api/records/ExecutionType.java | 43 +++++++++++++++++++ .../yarn/server/api/ContainerContext.java | 22 ++++++++++ .../src/main/proto/yarn_protos.proto | 6 +++ .../impl/pb/ContainerStatusPBImpl.java | 31 ++++++++++++- .../yarn/api/records/impl/pb/ProtoUtils.java | 12 ++++++ .../security/ContainerTokenIdentifier.java | 35 ++++++++++++++- .../src/main/proto/yarn_security_token.proto | 1 + .../security/TestYARNTokenIdentifier.java | 13 +++++- 10 files changed, 187 insertions(+), 3 deletions(-) create mode 100644 hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ExecutionType.java diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 44c8ccfce51..e380893e959 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -6,6 +6,9 @@ Trunk - Unreleased NEW FEATURES + YARN-2882. Add an OPPORTUNISTIC ExecutionType. + (Konstantinos Karanasos and Inigo Goiri via kasha) + IMPROVEMENTS YARN-2438. yarn-env.sh cleanup (aw) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ContainerStatus.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ContainerStatus.java index 2c2238fa842..4f56535c4e1 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ContainerStatus.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/ContainerStatus.java @@ -20,6 +20,7 @@ package org.apache.hadoop.yarn.api.records; import org.apache.hadoop.classification.InterfaceAudience.Private; import org.apache.hadoop.classification.InterfaceAudience.Public; +import org.apache.hadoop.classification.InterfaceStability.Evolving; import org.apache.hadoop.classification.InterfaceStability.Stable; import org.apache.hadoop.classification.InterfaceStability.Unstable; import org.apache.hadoop.yarn.util.Records; @@ -31,6 +32,7 @@ import org.apache.hadoop.yarn.util.Records; * It provides details such as: *