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…
What is Ansible and How to configure apache webserver in Docker using Ansible?
Introduction to Ansible:
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)
Play both the PlayBooks:
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!