Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6B7E0D9DD for ; Tue, 25 Sep 2012 02:58:11 +0000 (UTC) Received: (qmail 60684 invoked by uid 500); 25 Sep 2012 02:58:10 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 60655 invoked by uid 500); 25 Sep 2012 02:58:10 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 60612 invoked by uid 99); 25 Sep 2012 02:58:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 02:58:10 +0000 Date: Tue, 25 Sep 2012 13:58:10 +1100 (NCT) From: "Bikas Saha (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: <1215175612.120251.1348541890150.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (YARN-73) nodemanager should cleanup running containers when it starts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/YARN-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13462388#comment-13462388 ] Bikas Saha commented on YARN-73: -------------------------------- Pids might get reused. so we need to guard against that. Is there any generic Linux OS mechanism that would make the running containers die when the NM dies? e.g. On Windows, NM can use JobObject's to make this happen. > nodemanager should cleanup running containers when it starts > ------------------------------------------------------------ > > Key: YARN-73 > URL: https://issues.apache.org/jira/browse/YARN-73 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager > Affects Versions: 0.23.3 > Reporter: Thomas Graves > > Currently the nodemanager doesn't cleanup running containers when it gets restarted. This can cause containers to get lost and stick around forever. We've seen this happen multiple times when the RM is restarted. When the RM is brought back up, it doesn't know about what was running on the cluster, it tells the NMs to reboot and when the NM reboots it loses what it had running. If there are any containers that are behaving badly there is no one left that knows about them to kill them. > We should kill any running containers when the nodemanager is being started. Note that when the NM is being brought up it needs to somehow figure out what containers were running and be sure it doesn't kill anything it shouldn't. > Note, we should also try to kill any running containers when the node manager is shutting down (jira 4213 was filed for this). > This might change a bit when RM restart is implemented if tasks can actually survive across RM/NM being rebooted, but that can be addressed at that point. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira