From yarn-dev-return-29806-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Fri Mar 9 22:03:06 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 17EDC180676 for ; Fri, 9 Mar 2018 22:03:05 +0100 (CET) Received: (qmail 40055 invoked by uid 500); 9 Mar 2018 21:03:04 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 40043 invoked by uid 99); 9 Mar 2018 21:03:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2018 21:03:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 44DC7C005C for ; Fri, 9 Mar 2018 21:03:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id nANuaEd8rrI7 for ; Fri, 9 Mar 2018 21:03:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 063105F5B2 for ; Fri, 9 Mar 2018 21:03:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6B916E01A9 for ; Fri, 9 Mar 2018 21:03:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1B81221429 for ; Fri, 9 Mar 2018 21:03:02 +0000 (UTC) Date: Fri, 9 Mar 2018 21:03:02 +0000 (UTC) From: "Shane Kumpf (JIRA)" To: yarn-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (YARN-8017) Validate the application ID has been persisted to the service definition prior to use MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Shane Kumpf created YARN-8017: --------------------------------- Summary: Validate the application ID has been persisted to the= service definition prior to use Key: YARN-8017 URL: https://issues.apache.org/jira/browse/YARN-8017 Project: Hadoop YARN Issue Type: Sub-task Reporter: Shane Kumpf The service definition is persisted to disk=C2=A0prior to launching the app= lication. Once the application is launched, the service definition is updat= ed to include the application ID. If submit fails, the application ID is ne= ver added to the previously persisted service definition. When this occurs, attempting to stop or destroy the application results in = a NPE=C2=A0while trying to get the application ID from the service definiti= on, making it impossible to clean up. {code:java} 2018-03-02 18:28:05,512 INFO org.apache.hadoop.yarn.service.utils.ServiceAp= iUtil: Loading service definition from hdfs://y7001.yns.hortonworks.com:802= 0/user/hadoopuser/.yarn/services/skumpfcents/skumpfcents.json 2018-03-02 18:28:05,525 WARN org.apache.hadoop.yarn.webapp.GenericException= Handler: INTERNAL_SERVER_ERROR java.lang.NullPointerException =09at org.apache.hadoop.yarn.api.records.ApplicationId.fromString(Applicati= onId.java:111) =09at org.apache.hadoop.yarn.service.client.ServiceClient.getAppId(ServiceC= lient.java:1106) =09at org.apache.hadoop.yarn.service.client.ServiceClient.actionStop(Servic= eClient.java:363) =09at org.apache.hadoop.yarn.service.webapp.ApiServer$4.run(ApiServer.java:= 251) =09at org.apache.hadoop.yarn.service.webapp.ApiServer$4.run(ApiServer.java:= 243) =09at java.security.AccessController.doPrivileged(Native Method) =09at javax.security.auth.Subject.doAs(Subject.java:422){code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-dev-help@hadoop.apache.org