[ 
https://issues.apache.org/jira/browse/YARN-1450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13834424#comment-13834424
 ] 

Binglin Chang commented on YARN-1450:
-------------------------------------

Let me state the problem more clearly:
Story in YARN-1303: 
1. Client accept  --shell_command "pwd;ls"
2. Client can not construct a whole cmdline with proper escape support if 
shell_command contains special chars like ";", so it write the "pwd;ls" to file 
instead
3. AM started, read shell_command from file, get "pwd;ls"
Story in this jira YARN-1450:
1. some app directly launch AM without client, AM directly accept 
--shell_command "pwd;ls"


> TestUnmanagedAMLauncher#testDSShell fails on trunk
> --------------------------------------------------
>
>                 Key: YARN-1450
>                 URL: https://issues.apache.org/jira/browse/YARN-1450
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: applications/distributed-shell
>            Reporter: Akira AJISAKA
>            Assignee: Binglin Chang
>         Attachments: YARN-1450.v1.patch, YARN-1450.v2.patch, 
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.TestUnmanagedAMLauncher-output.txt,
>  
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.TestUnmanagedAMLauncher.txt
>
>
> TestUnmanagedAMLauncher fails on trunk. The console output is
> {code}
> Running 
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.TestUnmanagedAMLauncher
> Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 35.937 sec 
> <<< FAILURE! - in 
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.TestUnmanagedAMLauncher
> testDSShell(org.apache.hadoop.yarn.applications.unmanagedamlauncher.TestUnmanagedAMLauncher)
>   Time elapsed: 14.558 sec  <<< ERROR!
> java.lang.RuntimeException: Failed to receive final expected state in 
> ApplicationReport, CurrentState=ACCEPTED, 
> ExpectedStates=FINISHED,FAILED,KILLED
>       at 
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.UnmanagedAMLauncher.monitorApplication(UnmanagedAMLauncher.java:447)
>       at 
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.UnmanagedAMLauncher.run(UnmanagedAMLauncher.java:352)
>       at 
> org.apache.hadoop.yarn.applications.unmanagedamlauncher.TestUnmanagedAMLauncher.testDSShell(TestUnmanagedAMLauncher.java:145)
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to