Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1FB10200C29 for ; Tue, 28 Feb 2017 20:06:03 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1E1F0160B7C; Tue, 28 Feb 2017 19:06:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 42F48160B59 for ; Tue, 28 Feb 2017 20:06:02 +0100 (CET) Received: (qmail 66758 invoked by uid 500); 28 Feb 2017 19:05:45 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 66749 invoked by uid 99); 28 Feb 2017 19:05:45 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Feb 2017 19:05:45 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B010CDFDE6; Tue, 28 Feb 2017 19:05:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: xgong@apache.org To: common-commits@hadoop.apache.org Message-Id: <7263af4f8e9d4341bc100f62ae154be0@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: hadoop git commit: YARN-6189: Improve application status log message when RM restarted when app is in NEW state. Contributed by Junping Du Date: Tue, 28 Feb 2017 19:05:45 +0000 (UTC) archived-at: Tue, 28 Feb 2017 19:06:03 -0000 Repository: hadoop Updated Branches: refs/heads/trunk eac6b4c35 -> e0bb867c3 YARN-6189: Improve application status log message when RM restarted when app is in NEW state. Contributed by Junping Du Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/e0bb867c Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/e0bb867c Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/e0bb867c Branch: refs/heads/trunk Commit: e0bb867c3fa638c9f689ee0b044b400481cf02b5 Parents: eac6b4c Author: Xuan Authored: Tue Feb 28 11:04:56 2017 -0800 Committer: Xuan Committed: Tue Feb 28 11:04:56 2017 -0800 ---------------------------------------------------------------------- .../yarn/server/resourcemanager/ClientRMService.java | 15 ++++++++++----- .../server/resourcemanager/TestClientRMService.java | 3 ++- 2 files changed, 12 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/e0bb867c/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java index 48bccfb..929a9e7 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ClientRMService.java @@ -359,7 +359,8 @@ public class ClientRMService extends AbstractService implements // If the RM doesn't have the application, throw // ApplicationNotFoundException and let client to handle. throw new ApplicationNotFoundException("Application with id '" - + applicationId + "' doesn't exist in RM."); + + applicationId + "' doesn't exist in RM. Please check " + + "that the job submission was successful."); } boolean allowAccess = checkAccess(callerUGI, application.getUser(), @@ -393,7 +394,8 @@ public class ClientRMService extends AbstractService implements // ApplicationNotFoundException and let client to handle. throw new ApplicationNotFoundException("Application with id '" + request.getApplicationAttemptId().getApplicationId() - + "' doesn't exist in RM."); + + "' doesn't exist in RM. Please check that the job " + + "submission was successful."); } boolean allowAccess = checkAccess(callerUGI, application.getUser(), @@ -432,7 +434,8 @@ public class ClientRMService extends AbstractService implements // If the RM doesn't have the application, throw // ApplicationNotFoundException and let client to handle. throw new ApplicationNotFoundException("Application with id '" + appId - + "' doesn't exist in RM."); + + "' doesn't exist in RM. Please check that the job submission " + + "was successful."); } boolean allowAccess = checkAccess(callerUGI, application.getUser(), ApplicationAccessType.VIEW_APP, application); @@ -480,7 +483,8 @@ public class ClientRMService extends AbstractService implements // If the RM doesn't have the application, throw // ApplicationNotFoundException and let client to handle. throw new ApplicationNotFoundException("Application with id '" + appId - + "' doesn't exist in RM."); + + "' doesn't exist in RM. Please check that the job submission " + + "was successful."); } boolean allowAccess = checkAccess(callerUGI, application.getUser(), ApplicationAccessType.VIEW_APP, application); @@ -530,7 +534,8 @@ public class ClientRMService extends AbstractService implements // If the RM doesn't have the application, throw // ApplicationNotFoundException and let client to handle. throw new ApplicationNotFoundException("Application with id '" + appId - + "' doesn't exist in RM."); + + "' doesn't exist in RM. Please check that the job submission " + + "was successful."); } boolean allowAccess = checkAccess(callerUGI, application.getUser(), ApplicationAccessType.VIEW_APP, application); http://git-wip-us.apache.org/repos/asf/hadoop/blob/e0bb867c/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java index d5f9acc..9076ac3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestClientRMService.java @@ -283,7 +283,8 @@ public class TestClientRMService { } catch (ApplicationNotFoundException ex) { Assert.assertEquals(ex.getMessage(), "Application with id '" + request.getApplicationId() - + "' doesn't exist in RM."); + + "' doesn't exist in RM. Please check that the " + + "job submission was successful."); } } --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org