From your output below it appears that HDPMachine1 is not reachable. Can you please make sure that you can ping the machine from all hosts in the cluster and that name resolves to correct IP (also from all nodes in the cluster)? Also you can check what command ‘hostname -f’ resolves this hostaname to. Is it HDPMachine1, or some other name.
Since other issue on this post is resolved, please start new post if you are not able to resolve your issue with suggestions above.
Hope this helps and thanks for using HDP,