yarn.resourcemanager.am.max-attempts
是yarn集群上的全局配置,对运行在集群上的所有flink任务起作用;
在yarn-site.xml中配置;
yarn.application-attempts
只对当前的flink Job起作用,且不能大于yarn.resourcemanager.am.max-attempts,不然会被yarn.resourcemanager.am.max-attempts的值覆盖掉;
在flink-conf.yaml中配置(每个Job有一个 application master,每个application master 有一个 flink-conf.yaml);
集群初始化会占用一次(比如设置为5,则允许失败重启4次)
A hadoop job in Yarn is called an application. For example, a mapreduce job is one-to-one mapped to an Yarn application currently. If an application fails for a certa