@michael perez To add to Emil, to isolate CPU and Ram resources enable CPU scheduling. More info here.
CPU scheduling represents one aspect of YARN resource management capabilities that includes CGroups, node labels, archival storage, and memory as storage. CGroups should be used with CPU scheduling to constrain and manage CPU processes.