Code Monkey home page Code Monkey logo

ex-06-pseudo-node-configuration-for-hadoop-on-ubuntu's Introduction

Ex-06-Pseudo-Node-Configuration-for-Hadoop-on-Ubuntu

AIM

To implement Pseudo Node configuration for Hadoop on ubuntu

Pre-requisites

a) jdk

Single-Node Configuration

  1. Create a dedicated user account for hadoop

Screenshot 2023-10-24 193657

  1. Install java1.8 in folder /usr/local

Screenshot 2023-10-24 193712

  1. Install Hadoop

Screenshot 2023-10-24 193724

  1. Set the hadoop environment variables: Include the following lines in the

$HOME/.bashrc file

Screenshot 2023-10-24 193734

  1. Set hadoop environment variables: Include the following lines /etc/profile file

Screenshot 2023-10-24 193746

  1. Run the.bashrc & profile files from the $ prompt for updating the changes

Screenshot 2023-10-24 193833

$ bin/hadoop version

  1. Configuration of the hadoop files: hadoop-env.sh, core-site.xml, mapred-site.xml, hdfs- site.xml and yarn-site.xml

path :: /usr/local/hadoop-2.5.1/etc/hadoop

a) hadoop-env.sh

Include the following lines in hadoop-env.sh file

Screenshot 2023-10-24 193842

b) core-site.xml

Configure the directory for Hadoop to store its data files, the network ports it listens to, etc. Setup will use Hadoop’s Distributed File System (HDFS-single local machine)

Screenshot 2023-10-24 193851

Include the following lines in core-site.xml file between and

tags

Screenshot 2023-10-24 193907

c) mapred-site.xml

Screenshot 2023-10-24 194518

Include the following lines in mapred-site.xml file

Screenshot 2023-10-24 194545

d) hdfs-site.xml

Include the following lines in hdfs-site.xml file

Screenshot 2023-10-24 194609

e) yarn-site.xml

Include the following lines in yarn-site.xml file

Screenshot 2023-10-24 194633

  1. Format the Hadoop File system implemented on top of the local file system using

Screenshot 2023-10-24 194652

  1. Start Hadoop using

Screenshot 2023-10-24 194720

Explore Hadoop using http://localhost:50070/ from the browser

  1. The commonly used HDFS Commands are as follows:

Screenshot 2023-10-24 194735

  1. Create a directory ‘/input’ in HDFS

Screenshot 2023-10-24 194750

  1. Copy the input files into the distributed file system

Screenshot 2023-10-24 194801

  1. Run some of the examples provided

Screenshot 2023-10-24 194812

  1. Examine the output files

Screenshot 2023-10-24 194824

Copy the output files from the distributed file system to the local file system and examine them:

Screenshot 2023-10-24 194835

or View the output files on the distributed file system Screenshot 2023-10-24 194845

Result:

Thus, the implementation of Pseudo Node configuration for Hadoop on ubuntu is successfully executed.

ex-06-pseudo-node-configuration-for-hadoop-on-ubuntu's People

Contributors

drmalathisaravanan avatar balureddyvelayudhamgowtham avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.