UrbanPro
true

Learn Hadoop from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

HDFS And Mapreduce

1. HDFS (Hadoop Distributed File System):

  • Makes distributed filesystem look like a regular filesystem.
  • Breaks files down into blocks.
  • Distributes blocks to different nodes in the cluster based on algorithm.
  • Name-node (single node) is used to distribute data.

I. Data redundancy:

i. Stores copy of one block on data on 3-nodes.

ii. Block size is 64MB by default.

iii. Solves problems:

a. Network failures can cause missing data.

b. Failures individual nodes can "break" data.

II. NameNode standby:

i. Namenode was initially a massive single point of failure: if it breaks, data can be lost.

ii. Problem solved with Active/Standby.

a. When Active fails, standby picks up the job.

III. HDFS Commands.

IV. Mirrors Linux equivalents.

V. Examples:

  • list contents of HDFS with ls
> hadoop fs -ls
  • puts file into HDFS with put
> hadoop fs -put purchases.txt
  • display last few lines with tail
> hadoop fs -tail purchases.txt
  • remove file with rm
> hadoop fs -rm
  • display entire contents of file with cat
> hadoop fs -cat purchases.txt

2. Mapreduce is designed to process in parallel:

i. Mappers:

  • Deal with a small amount of data in parallel.
  • Puts into intermediate records (hashtable-like key/value structure).
  • Shuffle-and-sort into reducer.

ii. Reducers:

  • Collect the various hashtables and processes them (perhaps adds them).

a. Multiple reducers:

  • Generally, you don't know which keys are going to which reducer.

b. Daemons of MapReduce:

iii. Data nodes:

a. Task tracker:

i. Actually runs the map/reduce code.

ii. Input split is concept of trying to ensure task tracker runs on nodes with data (kinda).

  • Name nodes.
  • Job tracker.
  • To learn: does this run on the name node?

b. Running a job:

  • Hadoop streaming let's you use any language to write mapper/reducer.
  • Output directory must not already exist to run your jobs.
  • Example:
    > lsmapper.py reducer.py> hadoop jar /path/to/hadoop-streaming-mr1-cdh4.1.1.jar \-mapper mapper.py -reducer.py \-file mapper.py -file reducer.py \-input myinput -output joboutput.
0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Best way to learn any software Course
Hi First conform whether you are learning from a real time consultant. Get some Case Studies from the consultant and try to complete with the help of google not with consultant. Because in real time same situation will arise. Thank you

Big DATA Hadoop Online Training
Course Content for Hadoop DeveloperThis Course Covers 100% Developer and 40% Administration Syllabus.Introduction to BigData, Hadoop:- Big Data Introduction Hadoop Introduction What is Hadoop? Why Hadoop?...

How to create UDF (User Defined Function) in Hive
1. User Defined Function (UDF) in Hive using Java. 2. Download hive-0.4.1.jar and add it to lib-> Buil Path -> Add jar to libraries 3. Q:Find the Cube of number passed: import org.apache.hadoop.hive.ql.exec.UDF; public...
S

Sachin Patil

0 0
0

BigDATA HADOOP Infrastructure & Services: Basic Concept
Hadoop Cluster & Processes What is Hadoop Cluster? Hadoop cluster is the collections of one or more than one Linux Boxes. In a Hadoop cluster there should be a single Master(Linux machine/box) machine...

Loading Hive tables as a parquet File
Hive tables are very important when it comes to Hadoop and Spark as both can integrate and process the tables in Hive. Let's see how we can create a hive table that internally stores the records in it...
X

Looking for Hadoop Classes?

The best tutors for Hadoop Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Hadoop with the Best Tutors

The best Tutors for Hadoop Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more