Each time a new cluster is created I have to update all the /etc/hosts file with ip and dns name for all servers in the cluster. Is there any automated script for this? If I don't hear any responses I will build one and share.
# Install Hortonworks Public Tools > yum install wget > wget –qO---no-check-certificate https://github.com/hortonworks/HDP-Public-Utilities/raw/master/Installation/install_tools.sh | bash >./install.sh #Everything will be installed to /root/hdp; create the /root/hdp/Hostdetail.txt file with all the hostnames for your cluster. # Hostname –f > /root/hdp/Hostdetail.txt vi /root/hdp/Hostdetail.txt >cd hdp > ./copy_file.sh /etc/hosts /etc/hosts