RM 高可用和RM 重启

Yarn 高可用

Yarn 的故障转移有手动故障转移和自动故障转移, 手动故障转移是通过管理员执行 yarn 命令, 自动故障转移依赖于 Zookeeper 实现, 不需要额外的独立运行一个 ZKFC.

自动故障转移官方介绍:

The RMs have an option to embed the Zookeeper-based ActiveStandbyElector to decide which RM should be the Active. When the Active goes down or becomes unresponsive, another RM is automatically elected to be the Active which then takes over. Note that, there is no need to run a separate ZKFC daemon as is the case for HDFS because ActiveStandbyElector embedded in RMs acts as a failure detector and a leader elector instead of a separate ZKFC deamon.

yarn-site 配置, 以及具体步骤, 后续补全…

官方文档




RM 重启

RM restart 在 Hadoop 2.4 和 Hadoop 2.6 有两个不同的阶段.
  • 2.4 版本, 主要是把 RM 在重启的过程中, 把正在运行的任务通过 store file 将其保存起来, 并在 recovery 过程中把其重新 load , 从而让 RM 重启后恢复之前正在运行的任务.
  • 而 2.6 版本在 2.4 版本的基础之上, 主要关注于 RM 运行状态的重新构建:

" Beyond all the groundwork that has been done in Phase 1 to ensure the persistency of application state and reload that state on recovery, Phase 2 primarily focuses on re-constructing the entire running state of YARN cluster, the majority of which is the state of the central scheduler inside RM which keeps track of all containers’ life-cycle, applications’ headroom and resource requests, queues’ resource usage etc. ", 由此可以知道, 在 2.6 版本的 Hadoop 之后, RM 在重启过程中不会杀死任何正在运行的 Application.

官方文档
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值