1. Make either yarn.nodemanager.log-dirs/yarn.nodemanager.local-dirs read-only
2. Restart NMs via Ambari, none of them show up in the RM UI as expected
3. Revert back the read-only dirs and restart NMs
4. Include a non-existent dir in either yarn.nodemanager.log-dirs/yarn.nodemanager.local-dirs (1 good existing dir + 1 non-existing dir)
5. Restart NMs via Ambari, all NMs show as RUNNING with a Health Report message as expected
6. Submit a MapReduce sleep job, job goes into ACCEPTED state
7. Job stays in ACCEPTED state forever even though all NMs are running and have available memory
Credits to Charan Hebri who found this issue.