![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/3023122a13bd3cd680e06ddea3204135.png)
1.概述
上一篇文章:【Yarn】Yarn MRAppMaster 启动
我们先看看这个图
ContainerAllocator的创建是在MRAppMaster#serviceInit
方法中。
// 1:56 PM 九师兄 todo: 创建 ContainerAllocator
containerAllocator = createContainerAllocator(clientService, context);
该方法创建了ContainerAllocatorRouter