Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
- 页数
- 35
- 格式
- PPT
- 大小
- 786 KB
- Trường
- University of Maryland
- 浏览量
- 0
- 评论
- 0
- 下载次数
- 0
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ạ.
常见问题
此文档免费吗?
是的。“Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)”是免费的 — 只需登录并点击“下载”即可获取原始文件。
这份文档有多少页?
该文档共有 35 页,适用于课程 Khai phá dữ liệu。您可以在下载前进行在线预览。
我可以在下载前预览吗?
是的。您可以通过在线阅读器直接在本页面预览此文档,然后再决定是否下载。
- 文档名称
- Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
- 学校 / 课程
- University of Maryland · Khai phá dữ liệu
- 内容
- 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ạ.
- 目录
- 此文档没有清晰的目录。
- 页数
- 35 页
- 上传者
- Uni24h
正在生成预览...
描述
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
Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
正在生成预览...
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
阅读全文
- 文档名称
- Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
- 学校 / 课程
- University of Maryland · Khai phá dữ liệu
- 内容
- 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ạ.
- 目录
- 此文档没有清晰的目录。
- 页数
- 35 页
- 上传者
- Uni24h
评论 (0)
暂无评论。快来抢沙发吧!
Frequent Item Sets Association Rules (Tập phổ biến và Luật kết hợp)
Relational Data Processing on MapReduce (Xử lý dữ liệu quan hệ trên MapReduce)
Entity Resolution in the Web of Data (Phân giải thực thể trong Web dữ liệu)
IoT Data Analytics (Phân tích dữ liệu trong Internet vạn vật)
Introduction to Scalable Data Analytics using Apache Spark (Phân tích dữ liệu quy mô lớn sử dụng Apache Spark)
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
评论 (0)
暂无评论。快来抢沙发吧!