From 0f708d465fbc4260f2c36e8067e27cd8b285fde7 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. --- 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 9b2397fdd9..31a07441f9 100644 --- a/hadoop-yarn-project/CHANGES.txt +++ b/hadoop-yarn-project/CHANGES.txt @@ -618,6 +618,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 170c25ae84..783d7cb032 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 09d2bd5038..28ff576291 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 {