hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Can we avoid restarting of AM when it fails?
Date Sat, 08 Feb 2014 14:01:49 GMT
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 value of the RM property yarn.resourcemanager.am.max-retries
in the RM's YarnConfiguration or yarn-site.xml.

On Fri, Feb 7, 2014 at 5:24 PM, Krishna Kishore Bonagiri
<write2kishore@gmail.com> wrote:
> 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
> one failed?
>
> Thanks,
> Kishore



-- 
Harsh J

Mime
View raw message