[ 
https://issues.apache.org/jira/browse/YARN-1661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vinod Kumar Vavilapalli updated YARN-1661:
------------------------------------------

    Attachment: YARN-1661.txt

The issue is that {{run()}} returns the value of success and the correct value 
of _success_ is set right after that by {{finish()}} method of 
ApplicationMaster.

Attaching patch that fixes this.

Tested that it works on a single node cluster.

> AppMaster logs says failing even if an application does succeed.
> ----------------------------------------------------------------
>
>                 Key: YARN-1661
>                 URL: https://issues.apache.org/jira/browse/YARN-1661
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: applications/distributed-shell
>    Affects Versions: 2.3.0
>            Reporter: Tassapol Athiapinya
>            Assignee: Vinod Kumar Vavilapalli
>         Attachments: YARN-1661.txt
>
>
> Run:
> /usr/bin/yarn  org.apache.hadoop.yarn.applications.distributedshell.Client 
> -jar <distributed shell jar> -shell_command ls
> Open AM logs. Last line would indicate AM failure even though container logs 
> print good ls result.
> {code}
> 2014-01-24 21:45:29,592 INFO  [main] distributedshell.ApplicationMaster 
> (ApplicationMaster.java:finish(599)) - Application completed. Signalling 
> finish to RM
> 2014-01-24 21:45:29,612 INFO  [main] impl.AMRMClientImpl 
> (AMRMClientImpl.java:unregisterApplicationMaster(315)) - Waiting for 
> application to be successfully unregistered.
> 2014-01-24 21:45:29,816 INFO  [main] distributedshell.ApplicationMaster 
> (ApplicationMaster.java:main(267)) - Application Master failed. exiting
> {code}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to