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 D7AA3200B8A for ; Thu, 18 Aug 2016 03:07:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D659A160ABB; Thu, 18 Aug 2016 01:07:23 +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 26982160AB5 for ; Thu, 18 Aug 2016 03:07:22 +0200 (CEST) Received: (qmail 53688 invoked by uid 500); 18 Aug 2016 01:07:22 -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 53649 invoked by uid 99); 18 Aug 2016 01:07:22 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Aug 2016 01:07:22 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 47B532C02D0 for ; Thu, 18 Aug 2016 01:07:21 +0000 (UTC) Date: Thu, 18 Aug 2016 01:07:21 +0000 (UTC) From: "Vinod Kumar Vavilapalli (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YARN-1100) Giving multiple commands to ContainerLaunchContext doesn't work as expected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 18 Aug 2016 01:07:24 -0000 [ https://issues.apache.org/jira/browse/YARN-1100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Vinod Kumar Vavilapalli updated YARN-1100: ------------------------------------------ Target Version/s: 2.7.4 (was: 2.7.3) 2.7.3 is under release process, changing target-version to 2.7.4. > Giving multiple commands to ContainerLaunchContext doesn't work as expected > --------------------------------------------------------------------------- > > Key: YARN-1100 > URL: https://issues.apache.org/jira/browse/YARN-1100 > Project: Hadoop YARN > Issue Type: Bug > Components: api, nodemanager > Affects Versions: 2.1.0-beta, 2.7.2 > Reporter: Sandy Ryza > Attachments: YARN-1100.patch > > > A ContainerLaunchContext accepts a list of commands (as strings) to be executed to launch the container. I would expect that giving a list with the two commands "echo yolo" and "date" would print something like > {code} > yolo > Mon Aug 26 14:40:23 PDT 2013 > {code} > Instead it prints > {code} > yolo date > {code} > This is because the commands get executed with: > {code} > exec /bin/bash -c "echo yolo date" > {code} > To get the expected behavior I have to include semicolons at the end of each command. At the very least, this should be documented, but I think better would be for the NM to insert the semicolons. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org