Container configurations

Here are the some important configurations related to resource containers that are used to control containers.

To control the memory allocation to a container, the administrator needs to set the following three parameters in the yarn-site.xml configuration file:

Parameter

Description

yarn.nodemanager.resource.memory-mb

This is the amount of memory in MBs that the NodeManager can use for the containers.

yarn.scheduler.minimum-allocation-mb

This is the smallest amount of memory in MBs allocated to the container by the ResourceManager. The default value is 1024 MB.

yarn.scheduler.maximum-allocation-mb

This is the largest amount of memory in MBs allocated to the container by the ResourceManager. The default value ...

Get YARN Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.