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 1E287109C4 for ; Wed, 16 Oct 2013 23:29:42 +0000 (UTC) Received: (qmail 74570 invoked by uid 500); 16 Oct 2013 23:29:42 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 74537 invoked by uid 500); 16 Oct 2013 23:29:42 -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 74528 invoked by uid 99); 16 Oct 2013 23:29:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Oct 2013 23:29:42 +0000 Date: Wed, 16 Oct 2013 23:29:41 +0000 (UTC) From: "Tassapol Athiapinya (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-1314) Cannot pass more than 1 argument to shell command 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-1314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13797423#comment-13797423 ] Tassapol Athiapinya commented on YARN-1314: ------------------------------------------- [~xgong] can you please give an example of command to run multiple arguments? Ideally each argument should allow spaces in between also. As an example, similar to shell command, we can do: cp "my file 1.txt" "my file 2.txt" This can be complex by allowing \" inside each argument in addition to having spaces. cp "my\"file 1.txt" "my\"file 2.txt" > Cannot pass more than 1 argument to shell command > ------------------------------------------------- > > Key: YARN-1314 > URL: https://issues.apache.org/jira/browse/YARN-1314 > Project: Hadoop YARN > Issue Type: Bug > Components: applications/distributed-shell > Reporter: Tassapol Athiapinya > Assignee: Xuan Gong > Fix For: 2.2.1 > > Attachments: YARN-1314.1.patch > > > Distributed shell cannot accept more than 1 parameters in argument parts. > All of these commands are treated as 1 parameter: > /usr/bin/yarn org.apache.hadoop.yarn.applications.distributedshell.Client -jar -shell_command echo -shell_args "'"My name" "is Teddy"'" > /usr/bin/yarn org.apache.hadoop.yarn.applications.distributedshell.Client -jar -shell_command echo -shell_args "''My name' 'is Teddy''" > /usr/bin/yarn org.apache.hadoop.yarn.applications.distributedshell.Client -jar -shell_command echo -shell_args "'My name' 'is Teddy'" -- This message was sent by Atlassian JIRA (v6.1#6144)