You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (Jira)" <ji...@apache.org> on 2020/08/14 04:47:00 UTC
[jira] [Commented] (FLINK-18899) The property
yarn.application-attempts default value is not none
[ https://issues.apache.org/jira/browse/FLINK-18899?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17177479#comment-17177479 ]
Robert Metzger commented on FLINK-18899:
----------------------------------------
[~fly_in_gis] What do you think about this ticket? Does it make sense to extend the description of "yarn.application-attempts" and explain the overwritten values in HA mode?
> The property yarn.application-attempts default value is not none
> ----------------------------------------------------------------
>
> Key: FLINK-18899
> URL: https://issues.apache.org/jira/browse/FLINK-18899
> Project: Flink
> Issue Type: Bug
> Components: Deployment / YARN, Documentation
> Affects Versions: 1.11.0
> Reporter: Peng
> Priority: Major
>
> The document [https://ci.apache.org/projects/flink/flink-docs-release-1.11/ops/config.html#yarn-application-attempts] shows the yarn.application-attempts default value is none, but I found codes in org.apache.flink.yarn.YarnClusterDescriptor class like below:
> {code:java}
> if (HighAvailabilityMode.isHighAvailabilityModeActivated(configuration)) {
> // activate re-execution of failed applications
> appContext.setMaxAppAttempts(
> configuration.getInteger(
> YarnConfigOptions.APPLICATION_ATTEMPTS.key(),
> YarnConfiguration.DEFAULT_RM_AM_MAX_ATTEMPTS));
> activateHighAvailabilitySupport(appContext);
> } else {
> // set number of application retries to 1 in the default case
> appContext.setMaxAppAttempts(
> configuration.getInteger(
> YarnConfigOptions.APPLICATION_ATTEMPTS.key(),
> 1));
> }
> {code}
> This means, if HA mode, the default value is from Yarn(default 2), otherwise the default value is 1.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)