So jobs on yarn cluster runs in individual containers which is allocated by Node Manager which in turn gets permissions from Resource Manager.
So few configuration parameters of node manager those are important in context of jobs running in the containers.
Amount of physical memory, in MB, that can be allocated for containers.
Whether physical memory limits will be enforced for containers.
The bottom half of the article goes into an extended example.