Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
Generating preview...
Bài giảng về thiết kế thuật toán MapReduce, bao gồm các khái niệm cơ bản, kỹ thuật đồng bộ hóa, tối ưu hóa hiệu năng và các mẫu thiết kế như kết hợp trong bộ ánh xạ.
Description
MapReduce Algorithm Design Adapted from Jimmy Lin’s slides MapReduce: Recap Programmers must specify: map (k, v) → <k’, v’>* reduce (k’, v’) → <k’, v’>* All values with the same key are reduced together Optionally, also: partition (k’, number of partitions) → partition for k’ Often a simple hash of the key, e.g., hash(k’) mod n Divides up key space for parallel reduce operations combine (k’, v’) → <k’, v’>* Mini-reducers that run in memory after the map phase Used as an optimization to reduce network traffic The execution framework handles everything else… “Everything Else” The execution framework handles everything else… Scheduling: assigns workers to map and reduce tasks “Data distribution”: moves processes to data Synchronization: gathers, sorts, and shuffles intermediate data Errors and faults: detects worker failures and restarts Limited control over data and execution flow All algorithms must expressed in m, r, c, p You don’t know: Where mappers and reducers run When a mapper or reducer begins or finishes Which input a particular mapper is processing Which intermediate key a particular reducer is processing k1 v1 k2 v2 map a 1 k4 v4 map b 2 c 3 combine a 1 k3 v3 c 6 a 5 map c 2 b 7 combine c 9 partition k6 v6 map combine b 2 k5 v5 a 5 partition combine c 2 b 7 partition 1 5 b 2 7 c 8 partition Shuffle and Sort: aggregate values by keys a c 8 c 2 9 8 reduce reduce reduce r1 s1 r2 s2 r3 s3 Tools for Synchronization Cleverly-constructed data structures Bring partial results together Sort order of intermediate keys Control order in which reducers process keys Partitioner Control which reducer processes which keys Preserving state in mappers and reducers Capture dependencies across multiple keys and values Preserving State Mapper object Reducer object one object per task state configure map state API initialization hook one call per input ke
AI summary
- Document name
- Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
- School / Course
- University of Maryland · Khai phá dữ liệu
- Content
- Bài giảng về thiết kế thuật toán MapReduce, bao gồm các khái niệm cơ bản, kỹ thuật đồng bộ hóa, tối ưu hóa hiệu năng và các mẫu thiết kế như kết hợp trong bộ ánh xạ.
- Table of contents
- This document has no clear table of contents.
- Pages
- 35 pages
- Uploaded by
- Uni24h
Frequently asked questions
Is this document free?
Yes. “Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)” is free — just sign in and click Download to get the original file.
How many pages is this document?
The document has 35 pages, for the course Khai phá dữ liệu. You can preview it online before downloading.
Can I preview before downloading?
Yes. You can preview this document right on this page with the online reader, then decide whether to download.
Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
Generating preview...
MapReduce Algorithm Design Adapted from Jimmy Lin’s slides MapReduce: Recap Programmers must specify: map (k, v) → <k’, v’>* reduce (k’, v’) → <k’, v’>* All values with the same key are reduced together Optionally, also: partition (k’, number of partitions) → partition for k’ Often a simple hash of the key, e.g., hash(k’) mod n Divides up key space for parallel reduce operations combine (k’, v’) → <k’, v’>* Mini-reducers that run in memory after the map phase Used as an optimization to reduce network traffic The execution framework handles everything else… “Everything Else” The execution framework handles everything else… Scheduling: assigns workers to map and reduce tasks “Data distribution”: moves processes to data Synchronization: gathers, sorts, and shuffles intermediate data Errors and faults: detects worker failures and restarts Limited control over data and execution flow All algorithms must expressed in m, r, c, p You don’t know: Where mappers and reducers run When a mapper or reducer begins or finishes Which input a particular mapper is processing Which intermediate key a particular reducer is processing k1 v1 k2 v2 map a 1 k4 v4 map b 2 c 3 combine a 1 k3 v3 c 6 a 5 map c 2 b 7 combine c 9 partition k6 v6 map combine b 2 k5 v5 a 5 partition combine c 2 b 7 partition 1 5 b 2 7 c 8 partition Shuffle and Sort: aggregate values by keys a c 8 c 2 9 8 reduce reduce reduce r1 s1 r2 s2 r3 s3 Tools for Synchronization Cleverly-constructed data structures Bring partial results together Sort order of intermediate keys Control order in which reducers process keys Partitioner Control which reducer processes which keys Preserving state in mappers and reducers Capture dependencies across multiple keys and values Preserving State Mapper object Reducer object one object per task state configure map state API initialization hook one call per input ke
Read full document
- Document name
- Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
- School / Course
- University of Maryland · Khai phá dữ liệu
- Content
- Bài giảng về thiết kế thuật toán MapReduce, bao gồm các khái niệm cơ bản, kỹ thuật đồng bộ hóa, tối ưu hóa hiệu năng và các mẫu thiết kế như kết hợp trong bộ ánh xạ.
- Table of contents
- This document has no clear table of contents.
- Pages
- 35 pages
- Uploaded by
- Uni24h
Comments (0)
No comments yet. Be the first!
Basic association analysis (Chap 6) (Thuật toán trong phân tích kết hợp)
Introduction to Scalable Data Analytics using Apache Spark (Phân tích dữ liệu quy mô lớn sử dụng Apache Spark)
Frequent Item Sets Association Rules (Tập phổ biến và Luật kết hợp)
OLAP, Data Warehouse, and Column Store (Lecture 3) (Khái niệm về cơ sở dữ liệu quan hệ, OLTP, OLAP và kiến trúc kho dữ liệu)
Hadoop Programming (Khái niệm cơ bản về lập trình Hadoop MapReduce)
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Comments (0)
No comments yet. Be the first!