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 ADC9D1095F for ; Thu, 21 Nov 2013 01:09:35 +0000 (UTC) Received: (qmail 1001 invoked by uid 500); 21 Nov 2013 01:09:35 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 967 invoked by uid 500); 21 Nov 2013 01:09:35 -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 958 invoked by uid 99); 21 Nov 2013 01:09:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Nov 2013 01:09:35 +0000 Date: Thu, 21 Nov 2013 01:09:35 +0000 (UTC) From: "Xuan Gong (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-1303) Allow multiple commands separating with ";" in distributed-shell 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-1303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13828363#comment-13828363 ] Xuan Gong commented on YARN-1303: --------------------------------- bq.Use LocalResource.newInstance methods. changed bq.Make the string "shellCommands" as a constant. fixed bq.Change the command line parameter to the AM as shell_command_path Think that we do not need this option shell_command in AM anymore. We can simply check whether the shellCommandPath exists or not. bq.Change the example to use a command with';' as per JIRA description? changed > Allow multiple commands separating with ";" in distributed-shell > ---------------------------------------------------------------- > > Key: YARN-1303 > URL: https://issues.apache.org/jira/browse/YARN-1303 > Project: Hadoop YARN > Issue Type: Improvement > Components: applications/distributed-shell > Reporter: Tassapol Athiapinya > Assignee: Xuan Gong > Attachments: YARN-1303.1.patch, YARN-1303.2.patch, YARN-1303.3.patch, YARN-1303.3.patch, YARN-1303.4.patch, YARN-1303.4.patch, YARN-1303.5.patch, YARN-1303.6.patch, YARN-1303.7.patch, YARN-1303.8.1.patch, YARN-1303.8.2.patch, YARN-1303.8.patch > > > In shell, we can do "ls; ls" to run 2 commands at once. > In distributed shell, this is not working. We should improve to allow this to occur. There are practical use cases that I know of to run multiple commands or to set environment variables before a command. -- This message was sent by Atlassian JIRA (v6.1#6144)