MapReduce: Simplied Data Processing on Large Clusters Written By: Jeffrey Dean and Sanjay Ghemawat Presented By: Manoher Shatha & Naveen Kumar Ratkal.

Slides:



Advertisements
Similar presentations
Lecture 12: MapReduce: Simplified Data Processing on Large Clusters Xiaowei Yang (Duke University)
Advertisements

MAP REDUCE PROGRAMMING Dr G Sudha Sadasivam. Map - reduce sort/merge based distributed processing Best for batch- oriented processing Sort/merge is primitive.
Computations have to be distributed !
These are slides with a history. I found them on the web... They are apparently based on Dan Weld’s class at U. Washington, (who in turn based his slides.
Distributed Computations
MapReduce: Simplified Data Processing on Large Clusters Cloud Computing Seminar SEECS, NUST By Dr. Zahid Anwar.
CS 345A Data Mining MapReduce. Single-node architecture Memory Disk CPU Machine Learning, Statistics “Classical” Data Mining.
Google’s Map Reduce. Commodity Clusters Web data sets can be very large – Tens to hundreds of terabytes Cannot mine on a single server Standard architecture.
Map Reduce Allan Jefferson Armando Gonçalves Rocir Leite Filipe??
MapReduce Dean and Ghemawat. MapReduce: Simplified Data Processing on Large Clusters. Communications of the ACM, Vol. 51, No. 1, January Shahram.
Homework 2 In the docs folder of your Berkeley DB, have a careful look at documentation on how to configure BDB in main memory. In the docs folder of your.
Google’s Map Reduce. Commodity Clusters Web data sets can be very large – Tens to hundreds of terabytes Standard architecture emerging: – Cluster of commodity.
MapReduce Simplified Data Processing on Large Clusters Google, Inc. Presented by Prasad Raghavendra.
Distributed Computations MapReduce
7/14/2015EECS 584, Fall MapReduce: Simplied Data Processing on Large Clusters Yunxing Dai, Huan Feng.
L22: SC Report, Map Reduce November 23, Map Reduce What is MapReduce? Example computing environment How it works Fault Tolerance Debugging Performance.
MapReduce Simplified Data Processing On large Clusters Jeffery Dean and Sanjay Ghemawat.
Lecture 2 – MapReduce CPE 458 – Parallel Programming, Spring 2009 Except as otherwise noted, the content of this presentation is licensed under the Creative.
MapReduce : Simplified Data Processing on Large Clusters Hongwei Wang & Sihuizi Jin & Yajing Zhang
MapReduce: Simplified Data Processing on Large Clusters
U NIVERSITY OF M ASSACHUSETTS A MHERST Department of Computer Science U NIVERSITY OF M ASSACHUSETTS A MHERST Department of Computer Science MapReduce:
Map Reduce Architecture
MapReduce: Simpliyed Data Processing on Large Clusters Jeffrey Dean and Sanjay Ghemawat To appear in OSDI 2004 (Operating Systems Design and Implementation)
Advanced Topics: MapReduce ECE 454 Computer Systems Programming Topics: Reductions Implemented in Distributed Frameworks Distributed Key-Value Stores Hadoop.
SIDDHARTH MEHTA PURSUING MASTERS IN COMPUTER SCIENCE (FALL 2008) INTERESTS: SYSTEMS, WEB.
MapReduce.
Introduction to Parallel Programming MapReduce Except where otherwise noted all portions of this work are Copyright (c) 2007 Google and are licensed under.
By: Jeffrey Dean & Sanjay Ghemawat Presented by: Warunika Ranaweera Supervised by: Dr. Nalin Ranasinghe.
MapReduce. Web data sets can be very large – Tens to hundreds of terabytes Cannot mine on a single server Standard architecture emerging: – Cluster of.
MapReduce “Divide and Conquer”.
Leroy Garcia. What is Map Reduce?  A patented programming model developed by Google Derived from LISP and other forms of functional programming  Used.
Google MapReduce Simplified Data Processing on Large Clusters Jeff Dean, Sanjay Ghemawat Google, Inc. Presented by Conroy Whitney 4 th year CS – Web Development.
MapReduce: Simplified Data Processing on Large Clusters 컴퓨터학과 김정수.
Map Reduce: Simplified Data Processing On Large Clusters Jeffery Dean and Sanjay Ghemawat (Google Inc.) OSDI 2004 (Operating Systems Design and Implementation)
Süleyman Fatih GİRİŞ CONTENT 1. Introduction 2. Programming Model 2.1 Example 2.2 More Examples 3. Implementation 3.1 ExecutionOverview 3.2.
Map Reduce for data-intensive computing (Some of the content is adapted from the original authors’ talk at OSDI 04)
MapReduce: Simplified Data Processing on Large Clusters Jeffrey Dean and Sanjay Ghemawat.
1 The Map-Reduce Framework Compiled by Mark Silberstein, using slides from Dan Weld’s class at U. Washington, Yaniv Carmeli and some other.
MapReduce: Hadoop Implementation. Outline MapReduce overview Applications of MapReduce Hadoop overview.
Map Reduce: Simplified Processing on Large Clusters Jeffrey Dean and Sanjay Ghemawat Google, Inc. OSDI ’04: 6 th Symposium on Operating Systems Design.
MAP REDUCE : SIMPLIFIED DATA PROCESSING ON LARGE CLUSTERS Presented by: Simarpreet Gill.
MapReduce: Simplified Data Processing on Large Clusters
MapReduce How to painlessly process terabytes of data.
Google’s MapReduce Connor Poske Florida State University.
MapReduce M/R slides adapted from those of Jeff Dean’s.
Mass Data Processing Technology on Large Scale Clusters Summer, 2007, Tsinghua University All course material (slides, labs, etc) is licensed under the.
MapReduce Kristof Bamps Wouter Deroey. Outline Problem overview MapReduce o overview o implementation o refinements o conclusion.
MAPREDUCE PRESENTED BY: KATIE WOODS & JORDAN HOWELL.
SLIDE 1IS 240 – Spring 2013 MapReduce, HBase, and Hive University of California, Berkeley School of Information IS 257: Database Management.
SECTION 5: PERFORMANCE CHRIS ZINGRAF. OVERVIEW: This section measures the performance of MapReduce on two computations, Grep and Sort. These programs.
By Jeff Dean & Sanjay Ghemawat Google Inc. OSDI 2004 Presented by : Mohit Deopujari.
MapReduce: Simplified Data Processing on Large Clusters Lim JunSeok.
MapReduce : Simplified Data Processing on Large Clusters P 謝光昱 P 陳志豪 Operating Systems Design and Implementation 2004 Jeffrey Dean, Sanjay.
C-Store: MapReduce Jianlin Feng School of Software SUN YAT-SEN UNIVERSITY May. 22, 2009.
MapReduce: Simplified Data Processing on Large Clusters By Dinesh Dharme.
MapReduce: simplified data processing on large clusters Jeffrey Dean and Sanjay Ghemawat.
MapReduce: Simplified Data Processing on Large Cluster Authors: Jeffrey Dean and Sanjay Ghemawat Presented by: Yang Liu, University of Michigan EECS 582.
Dr Zahoor Tanoli COMSATS.  Certainly not suitable to process huge volumes of scalable data  Creates too much of a bottleneck.
COMP7330/7336 Advanced Parallel and Distributed Computing MapReduce - Introduction Dr. Xiao Qin Auburn University
MapReduce: Simplified Data Processing on Large Clusters Jeff Dean, Sanjay Ghemawat Google, Inc.
Lecture 3 – MapReduce: Implementation CSE 490h – Introduction to Distributed Computing, Spring 2009 Except as otherwise noted, the content of this presentation.
Lecture 4. MapReduce Instructor: Weidong Shi (Larry), PhD
MapReduce: Simplified Data Processing on Large Clusters
Map Reduce.
Auburn University COMP7330/7336 Advanced Parallel and Distributed Computing MapReduce - Introduction Dr. Xiao Qin Auburn.
MapReduce Simplied Data Processing on Large Clusters
湖南大学-信息科学与工程学院-计算机与科学系
Cloud Computing MapReduce, Batch Processing
MapReduce: Simplified Data Processing on Large Clusters
MapReduce: Simplified Data Processing on Large Clusters
Presentation transcript:

MapReduce: Simplied Data Processing on Large Clusters Written By: Jeffrey Dean and Sanjay Ghemawat Presented By: Manoher Shatha & Naveen Kumar Ratkal

Overview Motivation Introduction Programming Model Implementation Refinements Performance Conclusion

Motivation Issues in processing large amount of data over thousands of CPU’s. How to perform parallelization, data distribution etc. How to handle CPU failures ? MapReduce Provides: Automatic parallelization and Distribution. Fault tolerance. Monitoring and Status updates.

Introduction MapReduce: is a programming model and an associated implementation for processing and generating large data sets. Users specify Map and Reduce functions. Map is applied to get intermediate key/value pair. Reduce function combines all the intermediate values that shares the same key. These functions parallelize large computations easily. Definition taken from the paper

Programming Model MapReduce model takes set of key/value pair as the input and produces a new set of key/value pair as the output. MapReduce is a two fold process. Map function library groups together all intermediate values associated with same intermediate key ‘I’ and passes them to Reduce function. Reduce function library accepts intermediate key I and set of values for that key and then it combines all the similar keys.

Example of MapReduce The problem of counting the number of occurrences of each word in a large collection of documents. Input consists of (url, contents) pairs map(key=url, val=contents): For each word w in contents, emit (w, “1”) reduce(key=word, values=uniq_counts): Sum all “1”s in values list Emit result “(word, sum)” Map output: (shatha, 1) (ratkal, 1) (alice, 1) (shatha, 1) (bob, 1) (shatha, 1) (ratkal, 1) Reduce output: (alice, 1 ) (bob, 1 ) (ratkal, 2 ) (shatha, 3) Input document: shatha ratkal alice shatha bob shatha ratkal Code taken from the paper

Example of MapReduce Count of URL access frequency Map Function goes through all the log files (web page requests) and outputs (URL, 1). Reduce combines all values for the same URL and outputs (URL, total count). Reverse Web Link Graph Map: It generates (target, source) pairs for each link found in a web page. Reduce: It combines all the list of all source URLs linked with a given target URL and outputs (target, list(source) ).

Example of MapReduce Contd… Inverted Index Map : This function parses each document, and emits a sequence of (word, document ID ) pairs. Reduce : It accepts all pairs for a given word, sorts the corresponding document ID’s and emits a (word, list(document ID)). The set of all output form a simple inverted index.

Implementation Many different implementations are possible, best choice depends on the environment. Computing environment Dual Processor x86 Processors running Linux. With 2-4 GB memory per machine. N/W bandwidth is 1 gigabit/sec. Clusters consists of thousands of machines. Uses inexpensive IDE’s. Jobs are submitted to scheduling system.

Execution Overview Input Key/Value pair are split into blocks. Map function is performed on those blocks in parallel. Input splits can be processed in parallel by different machines. Sort the key/value pair. Reduce function is run on these intermediate key/value pair. If any of the function fails then those blocks are executed on other machines.

Execution Overview Contd… Figure taken from the paper Split 1 Split 0 Split 2 Split 3 Split 4 User Program Master Worker Output File 0 Output File 1 (1) fork (2) assign map (2) assign Reduce (3) read (4) Local write (5) Remote read (6) write Input Files Map Phase Intermediate files (on local disks) Reduce Phaseoutput Files

Master Data Structures Data structures are maintained by master. Master keeps the state of the worker machine for each map/reduce tasks. Intermediate files are passed from map to reduce function by master.

Fault Tolerance Worker Failure: The master pings each and every worker. Master waits for specified time. If no response then the worker machine is marked as failed. Work completed by failure worker machines are re-executed. All completed reduced tasks are not re-executed.

Fault Tolerance Contd… Master Failure: Master writes periodic check points to the master data structure. If master task dies, a new copy can be started from the last check point.

Backup Tasks What lengthens the total time for MapReduce operation? Straggler Straggler is a machine which takes longtime for assigned Map or Reduce tasks. How it is solved? When MapReduce operation is about to complete, the master schedules a backup executions for all those on going tasks. Backup is marked complete if it executes first else the primary.

Refinements User specify number of reduce tasks/output files that they need. Data get partitioned using the partitioning function on the intermediate key. Default partitioning function is provided. Example : hash(key) mod R Special partitioning function is : Example : hash(hostname(urlkey)) mod R Partitioning Function Ordering Guarantees The intermediate key/value pair are processed in increasing key order. This helps in generating the sorted output file per partition.

Refinements Contd… Some times there are significant repetitions in the intermediate keys generated by each map task. Example: Users are allowed to specify the combiner function that does partial merging. Partial combining considerably speeds up certain classes of map reduce operations. Combiner Function Input/Output Types Map Reduce library supports reading input data in several format. Example: In text file Key is offset in the file and value is the content of the line. One can add support for new input type by providing implementation of a simple reader interface.

Refinements Contd… Due to bugs in the Map Reduce function system crashes on certain records. Worker process installs a signal handler. If user code generates a signal then the sequence number is sent to master. If master notices enough failures then it skips that particular record. Skipping Bad Records

Refinements Contd… Status Information Master generates a set of status pages by running the HTTP server. These pages contains the information about the progress of computation, processing rate, etc. It even shows which worker failed and which Map Reduce task they were processing.

Performance Tests run on cluster of 1800 machines: 4 GB of memory Dual-processor 2 GHz Xeons Dual 160 GB IDE disks Gigabit Ethernet per machine Bench Marks Grep: The Grep program scans through 10 exp byte records, searching for relatively rare three character pattern. Sort : The Sort program sorts 10 exp byte records.

Performance Contd… Graph shows the progress of the computation overtime. Y-axis shows the rate at which the input data is scanned. The rate gradually peaks up as more machines assigned to this computation. As the map tasks finish, the rate starts dropping and hits zero about 80 sec in computation. Map Reduce Grep

Performance Contd… Map Reduce Sort Backup tasks reduce job completion time a lot. System deals well with failures. Normal No backups 200 processed killed

Conclusion MapReduce is a frame work for running large-scale parallel computations developed at Google. Easy to use. Google stores petabytes of data, MapReduce helps in processing and generating this data over thousands of commodity servers. Greatly simplifies large scale computations.