Hadoop Cluster configuration using Ansible

Hadoop + Ansible

What is Hadoop?

#to install Ansible
pip3 install ansible
#to install sshpass
yum install sshpass
#to check the version of Ansible installed in the system
ansible --version
<ip address> ansible_user=root ansible_ssh_pass=<password> ansible_connection=ssh
#to open ansible configuration file
vim /etc/ansible/ansible.conf
Configuration file
#to check the list of managed nodes
ansible all --list-hosts
#to check the connectivity
ansible all -m ping

Playbook Configuration:

#create a playbook for name node configuration
vim namenode.yml
playbook for name node configuration
#create a playbook for datanodes configuration
vim datanode.yml
playbook for data node configuration
#create a playbook for client node
vim client.yml
playbook for client node configuration
ansible-playbook namenode.yml
name node is running successfully
ansible datanode.yml
jps
ansible-playbook client.yml

--

--

--

Final Year Undergrad from Indian Institute of Information Technology Ranchi interested in learning the ins and outs of Technology

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

A Short Review of WebGIS in 2020

Six Elements for Effective Cloud Adoption

Strategy 3: The Erlang Distribution Protocol

http://pic.twitter.com/sBWwQh52qP

Open-Source: Week 3

Nexus — an introduction

How to Install & Register Wazuh Agent on Windows and Linux (Debian-Based)

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
Akshansh Singh

Akshansh Singh

Final Year Undergrad from Indian Institute of Information Technology Ranchi interested in learning the ins and outs of Technology

More from Medium

Checking your python code format on Azure Pipelines

Setup Airflow with Docker

How to deploy Azure Pipelines agent?

Use Ansible to customize AWS EMR through bootstrap actions