Configuring Hadoop via Ansible Playbook

Configuring Hadoop via Ansible Playbook

To configure Hadoop using Ansible Playbook we have to first know what is Hadoop?

No alt text provided for this image

HADOOP

Hadoop is an open-source software framework for storing data and running applications on clusters of commodity hardware. It provides massive storage for any kind of data, enormous processing power and the ability to handle virtually limitless concurrent tasks or jobs.

We use Hadoop to solve big data problems.

To know about ansible playbook check my previous blog.

CONFIGURING HADOOP VIA ANSIBLE PLAYBOOK

First we'll get into the folder of ansible playbook and make a yml file for the same

#cd /ansible-playbook

#vim 11task.yml

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

From the above code you can see that it has some more files(xml) which are required for the hadoop configuration so we will make it in the folder of ansible playbook itself

#vim cnn.xml

#vim hnn.xml

#vim hdn.xml

No alt text provided for this image

Also make groups for datanode and namenode in the ip.txt file

#vim ip.txt

No alt text provided for this image

Now we will run the ansible playbook

#ansible-playbook 11task.yml

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

Now open the managed node 1 and check jps command if the namenode is working or not

#jps

No alt text provided for this image

Same for managed node 2 and also check whether the namenode has the datanode connected or not

#jps

#hadoop dfsadmin -report

No alt text provided for this image


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

Shreya Garg的更多文章

  • Chat Server using Python

    Chat Server using Python

    Task Description: ??Create your own Chat Servers, and establish a network to transfer data using Socket Programing by…

    2 条评论
  • Use-case of JavaScript in Microsoft

    Use-case of JavaScript in Microsoft

    JAVASCRIPT JavaScript is often abbreviated as JS, is a programming language that conforms to the ECMAScript…

  • Using Face Recognition to solve several Tasks

    Using Face Recognition to solve several Tasks

    Task Description ?? ?? Creating a program that perform below mentioned task upon recognizing a particular face. ?? When…

  • Creating Live Streaming Video Chat using cv2 module of Python

    Creating Live Streaming Video Chat using cv2 module of Python

    We will create a live streaming Video Chat App without voice, using cv2 module of Python. To know about cv2 module then…

    2 条评论
  • Working on OpenCV-Python

    Working on OpenCV-Python

    Before working on OpenCV module we have to first know about Computer Vision. What is Computer Vision? Computer vision…

  • Cyber crime cases and confusion matrix

    Cyber crime cases and confusion matrix

    What is a Confusion Matrix? A Confusion matrix is an N x N matrix used for evaluating the performance of a…

    1 条评论
  • Running GUI software on Docker container

    Running GUI software on Docker container

    What provides GUI to OS An X server is a program in the X Window System that runs on local machines (i.e.

    6 条评论
  • Creating Machine Learning model on Docker Container

    Creating Machine Learning model on Docker Container

    DOCKER According to wikipedia, Docker is a set of platform as a service products that use OS-level virtualization to…

    6 条评论
  • How Ford Company uses Red Hat Openshift

    How Ford Company uses Red Hat Openshift

    What is Openshift? OpenShift is a cloud development Platform as a Service (PaaS) developed by Red Hat. It is an open…

    6 条评论
  • Ansible Role to Configure K8S Multi Node Cluster over AWS Cloud

    Ansible Role to Configure K8S Multi Node Cluster over AWS Cloud

    In this Blog we will perform the following tasks: ?? Create Ansible Playbook to launch 3 AWS EC2 Instance ?? Create…

    2 条评论

社区洞察

其他会员也浏览了