Description
In yarn resource/node manager init script you can see:
if [ -f /etc/default/hadoop-yarn-resourcemanager ] ; then . /etc/default/hadoop-yarn-resourcemanager fi
Unfortunately, only the following file exist:
/etc/default/yarn
So the RM/NM fail to start since it cannot source the default file and therefore missing some very important env variables