Setting up Hadoop Cluster using Ansible
We will be setting up Hadoop Cluster with help of Ansible playbook.
Firstly I have set up My Inventory with two hosts one for master node and one for data node.
For the playbook to understand the master node and data node properly we have to give them separate name.

Now we will check that my both hosts have not been installed with Hadoop and java.
And we will check their respective ip’s also .


After we have successfully check there is no java and Hadoop installed at both the hosts we will now check their connectivity from the controller node.

As both the nodes are successfully connected from the controller node now we can run our playbook in order to setup the Hadoop cluster.
Playbook: https://github.com/ritikbobade/Ansible-Playbook-Hadoop



As we can see our playbook is successfully completed running now we can check is the master node and and name node services are stared properly or not.


As we can see both name node and data node is stared successfully now we can check for the cluster is setup successfully .

As we can see the data node available is 1 that means our Hadoop cluster has been setup successfully.