It is great news that you got it work.
To answer your question, if you use DNS, /etc/hosts is not requred.
This is werid scenario. I have experience that when I reset ambari server when it was still running, reset didn’t work. Ambari server has to be stopped before reset.