2013.11.26- SLIDE 1IS 240 – Spring 2013 MapReduce, HBase, and Hive University of California, Berkeley School of Information IS 257: Database Management.

Slides:



Advertisements
Similar presentations
MapReduce: Simplified Data Processing on Large Clusters These are slides from Dan Weld’s class at U. Washington (who in turn made his slides based on those.
Advertisements

Mapreduce and Hadoop Introduce Mapreduce and Hadoop
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.
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.
MapReduce: Simplified Data Processing on Large Clusters J. Dean and S. Ghemawat (Google) OSDI 2004 Shimin Chen DISC Reading Group.
1 INF 2914 Information Retrieval and Web Search Lecture 6: Index Construction These slides are adapted from Stanford’s class CS276 / LING 286 Information.
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
U NIVERSITY OF M ASSACHUSETTS A MHERST Department of Computer Science U NIVERSITY OF M ASSACHUSETTS A MHERST Department of Computer Science MapReduce:
MapReduce CSE 454 Slides based on those by Jeff Dean, Sanjay Ghemawat, and Dan Weld.
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)
SIDDHARTH MEHTA PURSUING MASTERS IN COMPUTER SCIENCE (FALL 2008) INTERESTS: SYSTEMS, WEB.
MapReduce.
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.
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 컴퓨터학과 김정수.
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.
The Technology Behind. The World Wide Web In July 2008, Google announced that they found 1 trillion unique webpages! Billions of new web pages appear.
SLIDE 1IS 257 – Fall 2014 MapReduce, HBase, Pig and Hive University of California, Berkeley School of Information IS 257: Database Management.
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.
SLIDE 1IS 240 – Spring 2013 Prof. Ray Larson University of California, Berkeley School of Information Principles of Information Retrieval Lecture.
MapReduce: Simplified Data Processing on Large Clusters
MapReduce How to painlessly process terabytes of data.
MapReduce M/R slides adapted from those of Jeff Dean’s.
CPS216: Advanced Database Systems (Data-intensive Computing Systems) Introduction to MapReduce and Hadoop Shivnath Babu.
Mass Data Processing Technology on Large Scale Clusters Summer, 2007, Tsinghua University All course material (slides, labs, etc) is licensed under the.
All About Nutch Michael J. Cafarella CSE 454 April 14, 2005.
MapReduce Kristof Bamps Wouter Deroey. Outline Problem overview MapReduce o overview o implementation o refinements o conclusion.
SLIDE 1IS 257 – Fall 2014 NewSQL and VoltDB University of California, Berkeley School of Information IS 257: Database Management.
1 MapReduce: Theory and Implementation CSE 490h – Intro to Distributed Computing, Modified by George Lee Except as otherwise noted, the content of this.
Hung-chih Yang 1, Ali Dasdan 1 Ruey-Lung Hsiao 2, D. Stott Parker 2
Google Cluster Computing Faculty Training Workshop Module III: Nutch This presentation © Michael Cafarella Redistributed under the Creative Commons Attribution.
By Jeff Dean & Sanjay Ghemawat Google Inc. OSDI 2004 Presented by : Mohit Deopujari.
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.
Data Parallel and Graph Parallel Systems for Large-scale Data Processing Presenter: Kun Li.
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.
1 Student Date Time Wei Li Nov 30, 2015 Monday 9:00-9:25am Shubbhi Taneja Nov 30, 2015 Monday9:25-9:50am Rodrigo Sanandan Dec 2, 2015 Wednesday9:00-9:25am.
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 4. MapReduce Instructor: Weidong Shi (Larry), PhD
Cloud Computing.
MapReduce: Simplified Data Processing on Large Clusters
MapReduce, HBase, Pig and Hive
The Map-Reduce Framework
Map Reduce.
Auburn University COMP7330/7336 Advanced Parallel and Distributed Computing MapReduce - Introduction Dr. Xiao Qin Auburn.
MapReduce Simplied Data Processing on Large Clusters
湖南大学-信息科学与工程学院-计算机与科学系
Map reduce use case Giuseppe Andronico INFN Sez. CT & Consorzio COMETA
MapReduce: Simplified Data Processing on Large Clusters
Presentation transcript:

SLIDE 1IS 240 – Spring 2013 MapReduce, HBase, and Hive University of California, Berkeley School of Information IS 257: Database Management

SLIDE 2 MapReduce and Hadoop MapReduce developed at Google MapReduce implemented in Nutch –Doug Cutting at Yahoo! –Became Hadoop (named for Doug’s child’s stuffed elephant toy) IS 240 – Spring 2013

SLIDE 3 Motivation 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 From “MapReduce…” by Dan Weld

SLIDE 4 Map/Reduce –Programming model from Lisp –(and other functional languages) Many problems can be phrased this way Easy to distribute across nodes Nice retry/failure semantics From “MapReduce…” by Dan Weld

SLIDE 5 Map in Lisp (Scheme) (map f list [list 2 list 3 …]) (map square ‘( )) –( ) (reduce + ‘( )) –(+ 16 (+ 9 (+ 4 1) ) ) –30 (reduce + (map square (map – l 1 l 2 )))) Unary operator Binary operator From “MapReduce…” by Dan Weld

SLIDE 6 Map/Reduce ala Google map(key, val) is run on each item in set –emits new-key / new-val pairs reduce(key, vals) is run for each unique key emitted by map() –emits final output From “MapReduce…” by Dan Weld

SLIDE 7 count words in docs –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)” From “MapReduce…” by Dan Weld

SLIDE 8 Count, Illustrated 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 From “MapReduce…” by Dan Weld

SLIDE 9 Grep –Input consists of (url+offset, single line) –map(key=url+offset, val=line): If contents matches regexp, emit (line, “1”) –reduce(key=line, values=uniq_counts): Don’t do anything; just emit line From “MapReduce…” by Dan Weld

SLIDE 10 Reverse Web-Link Graph Map –For each URL linking to target, … –Output pairs Reduce –Concatenate list of all source URLs –Outputs: pairs From “MapReduce…” by Dan Weld

SLIDE 11 MapReduce Diagram IS 240 – Spring 2013 From “MapReduce in Nutch”, Doug Cutting 20 July 2005

SLIDE 12 Programming model Input & Output: each a set of key/value pairs Programmer specifies two functions: map (in_key, in_value) -> list(out_key, intermediate_value) –Processes input key/value pair –Produces set of intermediate pairs reduce (out_key, list(intermediate_value)) -> list(out_value) –Combines all intermediate values for a particular key –Produces a set of merged output values (usually just one) From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 13 Example Page 1: the weather is good Page 2: today is good Page 3: good weather is good. From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 14 Map output Worker 1: –(the 1), (weather 1), (is 1), (good 1). Worker 2: –(today 1), (is 1), (good 1). Worker 3: –(good 1), (weather 1), (is 1), (good 1). From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 15 Reduce Input Worker 1: –(the 1) Worker 2: –(is 1), (is 1), (is 1) Worker 3: –(weather 1), (weather 1) Worker 4: –(today 1) Worker 5: –(good 1), (good 1), (good 1), (good 1) From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 16 Reduce Output Worker 1: –(the 1) Worker 2: –(is 3) Worker 3: –(weather 2) Worker 4: –(today 1) Worker 5: –(good 4) From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 17 From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 18 Fault tolerance On worker failure: –Detect failure via periodic heartbeats –Re-execute completed and in-progress map tasks –Re-execute in progress reduce tasks –Task completion committed through master Master failure: –Could handle, but don't yet (master failure unlikely) From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 19 Refinement Different partitioning functions. Combiner function. Different input/output types. Skipping bad records. Local execution. Status info. Counters. From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 20 Performance Scan 10^ byte records to extract records matching a rare pattern (92K matching records) : 150 seconds. Sort 10^ byte records (modeled after TeraSort benchmark) : normal 839 seconds. From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 21 More and more mapreduce From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 22 Conclusion MapReduce has proven to be a useful abstraction Greatly simplifies large-scale computations at Google Fun to use: focus on problem, let library deal w/ messy details From “MapReduce: Simplified data Processing… ”, Jeffrey Dean and Sanjay Ghemawat

SLIDE 23 MapReduce in Hadoop (1)

SLIDE 24 MapReduce in Hadoop (2)

SLIDE 25 MapReduce in Hadoop (3)

SLIDE 26 Data Flow in a MapReduce Program in Hadoop InputFormat Map function Partitioner Sorting & Merging Combiner Shuffling Merging Reduce function OutputFormat  1:many

SLIDE 27

SLIDE 28 Lifecycle of a MapReduce Job Map function Reduce function Run this program as a MapReduce job

SLIDE 29 Lifecycle of a MapReduce Job Map function Reduce function Run this program as a MapReduce job

SLIDE 30 Map Wave 1 Reduce Wave 1 Map Wave 2 Reduce Wave 2 Input Splits Lifecycle of a MapReduce Job Time How are the number of splits, number of map and reduce tasks, memory allocation to tasks, etc., determined?

SLIDE 31 Job Configuration Parameters 190+ parameters in Hadoop Set manually or defaults are used

SLIDE 32 But – Raw Hadoop means code Most people don’t want to write code if they don’t have to Various tools layered on top of Hadoop give different, and more familiar, interfaces We will take a look at Hbase – intended to be a NoSQL database abstraction for Hadoop We will also look at Hive and it’s SQL-like language IS 240 – Spring 2013