From 433212ef878205b0c14e940dd660d1a6e8dc0238 Mon Sep 17 00:00:00 2001 From: Siddharth Seth Date: Wed, 16 Dec 2015 11:33:55 -0800 Subject: [PATCH] YARN-4207. Add a non-judgemental YARN app completion status. Contributed by Rich Haase. (cherry picked from commit 0f708d465fbc4260f2c36e8067e27cd8b285fde7) --- hadoop-yarn-project/CHANGES.txt | 2 ++ .../hadoop/yarn/api/records/FinalApplicationStatus.java | 5 ++++- .../hadoop-yarn-api/src/main/proto/yarn_protos.proto | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt index 502163bbabe..762b3504e6e 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -566,6 +566,8 @@ Release 2.8.0 - UNRELEASED YARN-4418. AM Resource Limit per partition can be updated to ResourceUsage as well. (Sunil G via wangda) + + YARN-4207. Add a non-judgemental YARN app completion status. (Rich Haase via sseth) OPTIMIZATIONS diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/FinalApplicationStatus.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/FinalApplicationStatus.java index 170c25ae845..783d7cb0321 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/FinalApplicationStatus.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/FinalApplicationStatus.java @@ -38,5 +38,8 @@ public enum FinalApplicationStatus { FAILED, /** Application which was terminated by a user or admin. */ - KILLED + KILLED, + + /** Application which has subtasks with multiple end states. */ + ENDED } diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/proto/yarn_protos.proto b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/proto/yarn_protos.proto index 09d2bd50380..28ff5762919 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/proto/yarn_protos.proto +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/proto/yarn_protos.proto @@ -131,6 +131,7 @@ enum FinalApplicationStatusProto { APP_SUCCEEDED = 1; APP_FAILED = 2; APP_KILLED = 3; + APP_ENDED = 4; } message URLProto {