Configuring Hadoop and starting Cluster Services using Ansible PlayBook
To know What is Ansible and how to setup the Control Node for ansible refer the 1st part of the following blog…
The only change that has to be done while following the above blog to setup the control node is Including the Name Node and Data Node IP in the Inventory

Let’s start writing the PlayBook one for Name Node and Data Node.. (we can also combine both together as a single playbook)
Name node:



Data node:



Play both the PlayBooks:
ansible-playbook <playbookname.yml>
Name node:






Data node:


Writing and playing the Playbook to Configure Hadoop and start Cluster Services is Successfull !!
Now let’s check whether all our requirements are satisfied….
Go to managed nodes (name node and data node) and run the jps and hadoop dfsadmin-report command



Task has been successfully completed!
