Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
Génération de l'aperç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ạ.
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
Résumé IA
- Nom du document
- Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
- École / Cours
- University of Maryland · Khai phá dữ liệu
- Contenu
- 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 des matières
- Ce document n'a pas de table des matières claire.
- Pages
- 35 pages
- Téléversé par
- Uni24h
Foire aux questions
Ce document est-il gratuit ?
Oui. « Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce) » est gratuit — il suffit de vous connecter et de cliquer sur Télécharger pour obtenir le fichier original.
Combien de pages compte ce document ?
Le document contient 35 pages, pour le cours Khai phá dữ liệu. Vous pouvez le prévisualiser en ligne avant de le télécharger.
Puis-je prévisualiser avant de télécharger ?
Oui. Vous pouvez prévisualiser ce document directement sur cette page avec le lecteur en ligne, puis décider de le télécharger ou non.
Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
Génération de l'aperçu...
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
Lire le document entier
- Nom du document
- Map Reduce Algorithm Design (Lecture 6) (Thiết kế thuật toán MapReduce)
- École / Cours
- University of Maryland · Khai phá dữ liệu
- Contenu
- 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 des matières
- Ce document n'a pas de table des matières claire.
- Pages
- 35 pages
- Téléversé par
- Uni24h
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !
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
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !