Re: Can we avoid restarting of AM when it fails?

2014-02-10 Thread Krishna Kishore Bonagiri
Thanks Harsh, I got it. On Sat, Feb 8, 2014 at 7:33 PM, Harsh J ha...@cloudera.com wrote: Correction: Set it to 1 (For 1 max attempt), not 0. On Sat, Feb 8, 2014 at 7:31 PM, Harsh J ha...@cloudera.com wrote: You can set

Re: Can we avoid restarting of AM when it fails?

2014-02-08 Thread Harsh J
You can set http://hadoop.apache.org/docs/current/api/org/apache/hadoop/yarn/api/records/ApplicationSubmissionContext.html#setMaxAppAttempts(int) to 0, at a per-app level, to prevent any reattempts/recovery of your AM. For a cluster-wide effect instead, you can limit by overriding the default

Can we avoid restarting of AM when it fails?

2014-02-07 Thread Krishna Kishore Bonagiri
Hi, I am having some failure test cases where my Application Master is supposed to fail. But when it fails it is again started with appID_02 . Is there a way for me to avoid the second instance of the Application Master getting started? Is it re-started automatically by the RM after the first