Return-Path: X-Original-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A2D2DD30 for ; Thu, 22 Nov 2012 14:08:18 +0000 (UTC) Received: (qmail 67822 invoked by uid 500); 22 Nov 2012 14:08:18 -0000 Delivered-To: apmail-hadoop-yarn-dev-archive@hadoop.apache.org Received: (qmail 67606 invoked by uid 500); 22 Nov 2012 14:08:15 -0000 Mailing-List: contact yarn-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-dev@hadoop.apache.org Delivered-To: mailing list yarn-dev@hadoop.apache.org Received: (qmail 67586 invoked by uid 99); 22 Nov 2012 14:08:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 14:08:14 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.145.54.173 is neither permitted nor denied by domain of matthieu@yahoo-inc.com) Received: from [216.145.54.173] (HELO mrout3.yahoo.com) (216.145.54.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Nov 2012 14:08:08 +0000 Received: from gardencry-lm.barcelona.corp.yahoo.com (gardencry-lm.barcelona.corp.yahoo.com [10.78.36.102]) by mrout3.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id qAME7RB4056798 for ; Thu, 22 Nov 2012 06:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1353593249; bh=j2nKlo+eJRGAmCjBnjR/UDpasbDMEb5eovUTfRd+8Ac=; h=From:Content-Type:Content-Transfer-Encoding:Subject:Date: Message-Id:To:Mime-Version; b=cQJt9PoQ9HcTl/F2KA4uJZYkXo/mXAztob/Hu0m6257dd+ImBsv32R9/Rstp4lufa /GKg5keKkXsJ8Xa6y5bq8ht/q6oqZgolBHAS/4Ym0cAuviPNSb82w7V6R7a+xR4Y8C 0vHMbhqRrrtagHUJmZkxjlnFQPw5ryA3Tch842EQ= From: Matthieu Morel Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Recommended way to kill an app? Date: Thu, 22 Nov 2012 15:07:26 +0100 Message-Id: To: yarn-dev@hadoop.apache.org Mime-Version: 1.0 (Apple Message framework v1283) X-Mailer: Apple Mail (2.1283) X-Milter-Version: master.31+4-gbc07cd5+ X-CLX-ID: 593248000 X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am working with yarn 2.0.2-alpha. I want to be able to properly terminate long running applications = deployed on Yarn. However, I can't see any tool to do that from the = command line (something like "hadoop job -kill #jobid". but for yarn). = It's not clear to me how to do that programmatically either.=20 Is this left to the developer of the application master? Is there a = recommended way? Currently an option I see is to implement a callback from some = notification in the application master (e.g. a signal from ZooKeeper), = terminate the launched container properly, through the = ContainerManager#stopContainer method. But there might be a more generic = way? I also noted that ClientRMProtocol#forceKillApplication does not = properly kill spawned processes, apart from the application master, at = least when using MiniYarnCluster in tests. Thanks for any suggestion or recommendation ! Matthieu