SIDDHARTH MEHTA PURSUING MASTERS IN COMPUTER SCIENCE (FALL 2008) INTERESTS: SYSTEMS, WEB.

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
CS 345A Data Mining MapReduce. Single-node architecture Memory Disk CPU Machine Learning, Statistics “Classical” Data Mining.
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.
MapReduce Simplified Data Processing on Large Clusters Google, Inc. Presented by Prasad Raghavendra.
Distributed Computations MapReduce
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.
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”.
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)
Parallel Programming Models Basic question: what is the “right” way to write parallel programs –And deal with the complexity of finding parallelism, coarsening.
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.
MapReduce and the New Software Stack CHAPTER 2 1.
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.
Map Reduce. Functional Programming Review r Functional operations do not modify data structures: They always create new ones r Original data still exists.
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.
MapReduce: Simplied Data Processing on Large Clusters Written By: Jeffrey Dean and Sanjay Ghemawat Presented By: Manoher Shatha & Naveen Kumar Ratkal.
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
Cloud Computing.
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
5/7/2019 Map Reduce Map reduce.
MapReduce: Simplified Data Processing on Large Clusters
Presentation transcript:

SIDDHARTH MEHTA PURSUING MASTERS IN COMPUTER SCIENCE (FALL 2008) INTERESTS: SYSTEMS, WEB

 A programming model and an associated implementation(library) for processing and generating large data sets (on large clusters).  A new abstraction allowing to express the simple computations that hides the messy details of parallelization, fault-tolerance, data distribution and load balancing in a library.

 Large-Scale Data Processing ◦ Want to use 1000s of CPUs  But don’t want hassle of managing things  MapReduce provides ◦ Automatic parallelization & distribution ◦ Fault tolerance ◦ I/O scheduling ◦ Monitoring & status updates

 The MapReduce programming model has been successfully used at Google for many different purposes. ◦ First, the model is easy to use, even for programmers without experience with parallel and distributed systems, since it hides the details of parallelization, fault-tolerance, locality optimization, and load balancing. ◦ Second, a large variety of problems are easily expressible as MapReduce computations. For example, MapReduce is used for the generation of data for Google's production web search service, for sorting, for data mining, for machine learning, and many other systems. ◦ Third, developed an implementation of MapReduce that scales to large clusters of machines comprising thousands of machines. The implementation makes efficient use of these machine resources and therefore is suitable for use on many of the large computational problems encountered at Google.

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)” see bob throw see spot run see1 bob1 run1 see 1 spot 1 throw1 bob1 run1 see 2 spot 1 throw1

 Distributed grep: ◦ Map: (key, whole doc/a line)  (the matched line, key) ◦ Reduce: identity function  Count of URL Access Frequency: ◦ Map: logs of web page requests  (URL, 1) ◦ Reduce:  (URL, total count)  Reverse Web-Link Graph: ◦ Map: (source, target)  (target, source) ◦ Reduce: (target, list(source))  (target, list(source))  Inverted Index: ◦ Map: (docID, document)  (word, docID) ◦ Reduce: (word, list(docID))  (word, sortedlist(docID))

 In Google clusters, comprised of the top of the line PCs. ◦ Intel Xeon 2 x 2MB, HyperThreading ◦ 2-4GB Memory ◦ 100 M– 1G network ◦ Local IDE disks + Google F.S. ◦ Submit job to a scheduling system

M R R

 Fault Tolerance – in a word: redo ◦ Master pings workers, re-schedules failed tasks. ◦ Note: Completed map tasks are re-executed on failure because their output is stored on the local disk. ◦ Master failure: redo ◦ Semantics in the presence of failures:  Deterministic map/reduce function: Produce the same output as would have been produced by a non-faulting sequential execution of the entire program  Rely on atomic commits of map and reduce task outputs to achieve this property.

 Partitioning  Ordering guarantees  Combiner function  Side effects  Skipping bad records  Local execution  Status information  Counters

 Straggler: a machine that takes an unusually long time to complete one of the last few map or reduce tasks in the computation.  Cause: bad disk, …  Resolution: schedule backup of in-progress tasks near the end of MapReduce Operation

 Partition output of a map task to R pieces  Default: hash(key) mod R  User provided ◦ E.g. hash(Hostname(url)) mod R ‥ ‥ ‥ R One Partition M

 Guarantee: within a given partition, the intermediate key/value pairs are processed in increasing key order.  MapReduce Impl. of distributed sort ◦ Map: (key, value)  (key for sort, value) ◦ Reduce: emit unchanged.

 E.g. : word count, many  Combine once before reduce task, for saving network bandwidth  Executed on machine performing map task.  Typically the same as reduce function  Output to an intermediate file  Example: count words

 Skipping Bad Records ◦ Ignoring certain records makes tasks crash ◦ An optional mode of execution ◦ Install a signal handler to catch segmentation violations and bus errors.

 Status Information ◦ The master runs an internal HTTP server and exports a set of status pages ◦ Monitor progress of computation: how many tasks have been completed, how many are in progress, bytes of input, bytes of intermediate data, bytes of output, processing rates, etc. The pages also contain links to the standard error and standard output files generated by each task. ◦ In addition, the top-level status page shows which workers have failed, and which map and reduce tasks they were processing when they failed.

 Tests on grep and sort  Cluster characteristics ◦ 1800 machines (!) ◦ Intel Xeon 2x2MB, HyperThreading ◦ 2-4 GB Bytes Memory ◦ 100 M– 1G network ◦ Local IDE disks + Google F.S.

 1 terabyte: 10^ byte records  Rare three-character pattern (10^5 freq.)  Split input into 64 MB pieces, M=15000  R=1 (output is small)

 Peak at 30 GB/s (1764 workers)  1 minute startup time ◦ Propagation of program to workers ◦ GFS: open 1000 input files ◦ Locality optimization  Completed in <1.5 minutes

 1 terabyte: 10^ byte records  Extract 10-byte sorting key  Map: Emit :  Reduce: identity  2-way replication of output ◦ For redundancy, typical in GFS  M=15000, R=4000  May need pre-pass MapReduce for computing distribution of keys

 Input rate less than for grep  Two humps: 2*1700 ~ 4000  Final output delayed because of sorting  Rates: input>shuffle,output (locality!)  Rates: shuffle>output (writing 2 copies)  Effect of backup  Effect of machine failures

◦ Restricting the programming model makes it easy to parallelize and distribute computations and to make such computations fault-tolerant. ◦ Network bandwidth is a scarce resource. A number of optimizations in the system are therefore targeted at reducing the amount of data sent across the network: the locality optimization allows to read data from local disks, and writing a single copy of the intermediate data to local disk saves network bandwidth. ◦ Redundant execution can be used to reduce the impact of slow machines, and to handle machine failures and data loss.