task-11.1

  1. for Ansible
  2. for Name Node
  3. for Data Node
  4. for Client

Entire playbook for NameNode :*******************************

— -
- hosts: 192.168.43.31
vars:
— NNdir: “Name_Node_Dir_by_Ansible”
tasks:
— name: making directory for Name Node
file:
path: /{{ NNdir }}
state: directory

  • name: “displaying report”
    debug:
    var: op_report

DATANODE-playbook**************************************

— -
- hosts: 192.168.43.205
vars:
— DNdir: “Data_Node_Dir_by_Ansible”
— NNip: 192.168.43.31
tasks:
— name: making directory for Data Node
file:
path: /{{ DNdir }}
state: directory

  • shell: hadoop dfsadmin -report
    register: report
    — debug:
    var: report

Client-playbook:********************************************

— -
- hosts: 192.168.43.37
tasks:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store