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 75183200C70 for ; Thu, 20 Apr 2017 01:06:09 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 73B4C160BAD; Wed, 19 Apr 2017 23:06:09 +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 C3461160B9C for ; Thu, 20 Apr 2017 01:06:08 +0200 (CEST) Received: (qmail 72564 invoked by uid 500); 19 Apr 2017 23:06:08 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 72553 invoked by uid 99); 19 Apr 2017 23:06:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Apr 2017 23:06:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 754721857B2 for ; Wed, 19 Apr 2017 23:06:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4Owf3Ixb81Tj for ; Wed, 19 Apr 2017 23:06:05 +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 605CD5FB64 for ; Wed, 19 Apr 2017 23:06:05 +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 C6579E0BDD for ; Wed, 19 Apr 2017 23:06:04 +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 2F7DC21B57 for ; Wed, 19 Apr 2017 23:06:04 +0000 (UTC) Date: Wed, 19 Apr 2017 23:06:04 +0000 (UTC) From: "Daniel Templeton (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (YARN-6495) check docker container's exit code when writing to cgroup task files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 19 Apr 2017 23:06:09 -0000 [ https://issues.apache.org/jira/browse/YARN-6495?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Templeton reassigned YARN-6495: -------------------------------------- Assignee: Jaeboo Jeong > check docker container's exit code when writing to cgroup task files > -------------------------------------------------------------------- > > Key: YARN-6495 > URL: https://issues.apache.org/jira/browse/YARN-6495 > Project: Hadoop YARN > Issue Type: Improvement > Components: nodemanager > Reporter: Jaeboo Jeong > Assignee: Jaeboo Jeong > Attachments: YARN-6495.001.patch > > > If I execute simple command like date on docker container, the applicatio= n failed to complete successfully. > for example,=20 > {code} > $ yarn jar $HADOOP_HOME/share/hadoop/yarn/hadoop-yarn-applications-distr= ibutedshell-2.7.1.jar -shell_env YARN_CONTAINER_RUNTIME_TYPE=3Ddocker -shel= l_env YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=3Dhadoop-docker -shell_command "d= ate" -jar $HADOOP_HOME/share/hadoop/yarn/hadoop-yarn-applications-distribut= edshell-2.7.1.jar -num_containers 1 -timeout 3600000 > =E2=80=A6 > 17/04/12 00:16:40 INFO distributedshell.Client: Application did finished = unsuccessfully. YarnState=3DFINISHED, DSFinalStatus=3DFAILED. Breaking moni= toring loop > 17/04/12 00:16:40 ERROR distributedshell.Client: Application failed to co= mplete successfully > {code} > The error log is like below. > {code} > ... > Failed to write pid to file /cgroup_parent/cpu/hadoop-yarn/container_xxxx= /tasks - No such process > ... > {code} > When writing pid to cgroup tasks, container-executor doesn=E2=80=99t chec= k docker container=E2=80=99s status. > If the container finished very quickly, we can=E2=80=99t write pid to cgr= oup tasks, and it is not problem. > So container-executor needs to check docker container=E2=80=99s exit code= during writing pid to cgroup tasks. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org