Configuring Hadoop cluster with Ansible

Configuring Hadoop cluster with Ansible

In this article, we will be automating the setup of Hadoop cluster using Ansible.

Prerequisite setup requires Ansible installed on VM or use pip3 install ansible command to install it.

Here's my inventory file in which Datanode IP and Namenode IP is setup:

No alt text provided for this image

And here's the ansible-playbook in which I have installed Java and Hadoop software, and editing of the files are also done using automation:

No alt text provided for this image

Here's the playbook for the namenode of hadoop cluster

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Now will run the ansible playbook command to configure our namenode

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Now, our namenode has been successfully configured in one of the OS, and we can check this by using "jps" command in our namenode OS

No alt text provided for this image

After this, we will configuring our datanode and the ansible playbook for the same is shown below!

No alt text provided for this image
No alt text provided for this image

Now, we will run our ansible playbook for datanode which will be configured in two OS.

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Finally, our hadoop cluster has been successfully configured and we can check this by using namenode IP with the port no of hadoop i.e. 50070

No alt text provided for this image

Also we can check this through command-line of datanode or namenode by using the following command:

No alt text provided for this image

Hence, proved that our hadoop cluster has been configured.

Thankyou for reading!

does this code is present in git hub?

回复

要查看或添加评论,请登录

Mohak Gund的更多文章

  • Integrating Google Kubernetes Engine with Container Registry using CloudBuild!

    Integrating Google Kubernetes Engine with Container Registry using CloudBuild!

    Motive: To update your Kubernetes containers with the latest image and updated code using CI-CD (CloudBuild) What is…

    2 条评论
  • Launching a WordPress site using AWS EC2 and connecting with AWS RDS(mySQL) as database

    Launching a WordPress site using AWS EC2 and connecting with AWS RDS(mySQL) as database

    ?? Create an AWS EC2 instance ?? Configure the instance with Apache Webserver. ?? Download php application name…

  • Launching HTTPD on Docker using Ansible

    Launching HTTPD on Docker using Ansible

    In this task we will be configuring our HTTPD server on Docker using Automation! First, I'm proving that in our managed…

    2 条评论
  • Hadoop and LVM

    Hadoop and LVM

    LVM : also known as Logical Volume Manager provides elasticity to increase or decrease size of the volume. Hadoop :…

    1 条评论
  • Configuring Webserver and Python interpreter over Docker container

    Configuring Webserver and Python interpreter over Docker container

    Welcome you all to my article based on TASK-7.2 of ARTH Task Description: Configuring HTTPD Server on Docker Container…

    2 条评论
  • National Strategy and AI

    National Strategy and AI

    What is Artificial Intelligence? AI might just be the single largest technology revolution of our live times, with the…

  • AWS - CLI

    AWS - CLI

    Hello connections ! This is the task performed in which I have configured an Amazon Linux EC2 instance and attach an…

  • Netflix on AWS

    Netflix on AWS

    What is Netflix ? Netflix is the world’s leading internet television network, with more than 100 million members in…

  • Big data

    Big data

    What is Big Data? Big data is a term that describes the large volume of data – both structured and unstructured – that…

  • Task 6

    Task 6

    Deploying WordPress application on K8S over minikube and RDS database on AWS. Hey connections, in this setup we have…

社区洞察

其他会员也浏览了