Configure Hadoop Using Ansible Playbook

Hadoop

DataNode

NameNode

Our task is to write an ansible playbook that will configure data nodes and name nodes in slave and master host groups respectively.

I will use 2 Datanodes on AWS, 1 Namenode on AWS, and 1 Ansible Controller node in Virtual Machine.

  • Launch 3 Instances on AWS.
  • Update Inventory file of Ansible hosts.
  • Configure the Ansible Configuration file.
  • Run the following Playbook. (Click here to get code.)
  • The output of Playbook is:
  • Now check Namenodes and Datanodes, it has been configured.