Dear Lucas,
Container follows the concept of Yarn resources in the Hadoop system. The container is a resource abstraction in YARN. It encapsulates multi-dimensional resources on a node, such as memory, CPU, disk, network, etc. When AM requests resources from RM, the resources returned by RM for AM are represented by Container. YARN assigns a Container to each task, and the task can only use the resources described in the Container.
It should be noted that Container is different from slot in MRv1. It is a dynamic resource division unit and is dynamically generated according to the requirements of the application. As of the completion of this book, YARN only supports CPU and memory resources, and uses lightweight resource isolation mechanism Cgroups for resource isolation.
Hope this can help.