Return-Path: X-Original-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AB8B10D8E for ; Tue, 18 Feb 2014 23:10:05 +0000 (UTC) Received: (qmail 23105 invoked by uid 500); 18 Feb 2014 23:09:53 -0000 Delivered-To: apmail-hadoop-mapreduce-user-archive@hadoop.apache.org Received: (qmail 22989 invoked by uid 500); 18 Feb 2014 23:09:52 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 22952 invoked by uid 99); 18 Feb 2014 23:09:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 23:09:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [98.139.212.155] (HELO nm25-vm1.bullet.mail.bf1.yahoo.com) (98.139.212.155) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Feb 2014 23:09:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1392764963; bh=7iup93+BPyKTo26h7gedoL6104SvRihZVt6eQAKZghQ=; h=Received:Received:Received:DKIM-Signature:X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:References:Mime-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=o2hZE4x0KirNpUqM5TzKLYVaTrwdXFHCVmdVkQ+t6z9EKixAtOVLoFvBv4+64h4bjwBZAHSxsW5iI/q5pM7zVBuJ3rWbEdhqNFgsiuT7NgNcLu/+AAOeW3lsqBovBQa808v+6Pt6IeR+rJM1kyNkuloP1h/DEuZdpIhon7ktCdI= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; b=0/gwD4CNzdx1OvhRCIufOvaICayEw9KLPVgZeGeqMqXUEWowZ8IGg7nnvIvi1b67aHNf5Z/U8PcUdq+FI4Yp/g7BewV1F3aLPQ4TD3fo2gBSrlpDUAELY3CijtYmbVfMLch9SxWj+u29MKHgAKj2pfKXaovskWz/gSx5yqvUIx8=; Received: from [66.196.81.173] by nm25.bullet.mail.bf1.yahoo.com with NNFMP; 18 Feb 2014 23:09:23 -0000 Received: from [98.139.211.203] by tm19.bullet.mail.bf1.yahoo.com with NNFMP; 18 Feb 2014 23:09:23 -0000 Received: from [127.0.0.1] by smtp212.mail.bf1.yahoo.com with NNFMP; 18 Feb 2014 23:09:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1392764963; bh=7iup93+BPyKTo26h7gedoL6104SvRihZVt6eQAKZghQ=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:References:Mime-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=akoEwpkWOpHc2UqbknMh2Gvqfy7cd/Fig/RqhBviJgaCd2L2mrKrfU4MmGJs9o3ooPXMJW05SbuEaHYawS9LbyW+zjtlmPNMSVMYKxMVQKetFQnmDDFZbz6T+GIi6sFFwxLtxlTfmKvhE0YUpA6ILkgzXElYc18k4qgon5eg/cM= X-Yahoo-Newman-Id: 416085.37501.bm@smtp212.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: ayonsYUVM1lf9Jrextvo7gv5sR5Zv4LJAwYPxe1fTVeMvhe TL62oSxXW8PMkKAiI2.gvGw6e4Kk1zzLLKl_vMoKOdGAApBxZhbQmPXIBHdo Ru_8q_svST9fbMID8sbuy6ca2VIl5V0b53J1My_faKyhM71jf.7mRMyUBFHW uHb_51mbGgBhyoTv5tampnL4gpGRse0JZjpsrivGM6aehyZUAzUbV49Q7th. ZOUeXjasXfVq47qY730aFko91RRngeiIwaIBpTCwTx1RyJIJixc1MpDvKgGR 5_MyKJ3I23GcM4WHHddRB3EnvE_FT5YXcyF12p0yKliixXTmskfB8FHSK9EN 3mvOZTr7JTCh3MBcWC1KezBnYCaVOl4mSbKtyApYocw2KI5E2BN1Tqea9dW. Uwj7OuNDgJXax_5R3AAqqPfrnPzYn1jjulner3REG9eoqLj4kgFEuOC.bjxV 9iXUF7fg93P2zBnagDXNb.HH94BmdswIUHFrK.RfEtNRSrgn40uvxrwmKK8v hP4PvERzrb1vqc_t92hJfwEvqcXuBZOu5LHrV9g-- X-Yahoo-SMTP: rzH6p7GswBCUblRLbd2cCkm55bdaesEo5GBLTzud7y2sPTs- X-Rocket-Received: from [72.33.28.133] (anandmundada@72.33.28.133 with xymcookie [216.39.61.254]) by smtp212.mail.bf1.yahoo.com with SMTP; 18 Feb 2014 15:09:23 -0800 PST References: <1392704198.21464.YahooMailNeo@web163101.mail.bf1.yahoo.com> Mime-Version: 1.0 (1.0) In-Reply-To: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Message-Id: Cc: "yarn-dev@hadoop.apache.org" , "ozawa.tsuyoshi@gmail.com" X-Mailer: iPhone Mail (11B554a) From: Anand Mundada Subject: Re: Yarn - Running multiple commands on container Date: Tue, 18 Feb 2014 17:09:19 -0600 To: "user@hadoop.apache.org" X-Virus-Checked: Checked by ClamAV on apache.org I tried executing 2 commands deprecated by semicolon ';'. Now I can only exe= cute command two. Is there is another solution for this? Thanks, Anand Sent from my iPhone > On Feb 18, 2014, at 12:12 PM, Tsuyoshi OZAWA wr= ote: >=20 > Hi Anand and YARN developers, >=20 > I found that UnixShellScriptBuilder#command just concatenates > each commands with space, not with ";". > Therefore, you need to suffix ";" after commands you'd like to execute. >=20 > UnixShellScriptBuilder { > @Override > public void command(List command) { > line("exec /bin/bash -c \"", StringUtils.join(" ", command), "\""); > } > } >=20 >> YARN developers > Is this expected behavior? IMO, this seems to go against instinct of users= . > Javadoc of ContainerLaunchContext#setCommands says: > "@param commands the list of commands for launching the container= ", > so should we each commands with ";"? >=20 > Thanks, > - Tsuyoshi >=20 >> On Mon, Feb 17, 2014 at 10:16 PM, Anand Mundada w= rote: >> Hi all, >>=20 >> I am using >> containerLaunchContext.setCommands() to add different commands that I wan= ted >> to run on container. >> But only first command is getting execute. >> Is there is something else I need to do? >>=20 >> Code: >> List commands =3D new ArrayList(); >> commands.add(cmd1); >> commands.add(cmd2); >>=20 >> I can see only cmd1 is getting executed. >>=20 >> Thanks, >> Anand >=20 >=20 >=20 > --=20 > - Tsuyoshi