I had the same problem during the course. We used Amazon virtual machines with 2 cores .
After various modifications, yarn-site.xml
we got our NodeManager by setting the following properties
<property>
<name>yarn.nodemanager.resource.memory-mb</name>
<value>4096</value>
</property>
<property>
<name>yarn.nodemanager.resource.cpu-vcores</name>
<value>2</value>
</property>
In your case, you may need to install 8 virtual cores.
source
share