Dear Ravin,
Hope you are doing well.
Please find the steps given below:
Step 1 : Please login as root user first
su
Step 2 : Now open /etc/hosts file and make sure that you have updated the hostname with ip address of all the nodes
vi /etc/hosts
Step 3 : Disable the firewall of the nodes
sudo service iptables stop
sudo service chkconfig off
Please let me know if the issue still persists so that we can have a session regarding this.
We are eagerly waiting for your reply.
Feel free to contact us in case you have any query.