목차


ppt

MapReduce

3 steps of MapReduce


Map-Reduce: A diagram

스크린샷 2023-12-20 오전 5.59.26.png


Map-Reduce: In Parallel

스크린샷 2023-12-20 오전 5.59.54.png


Example Word Count

스크린샷 2023-12-20 오전 6.00.13.png


MapReduce Pattern

스크린샷 2023-12-20 오전 6.00.25.png


MapReduce Phases

스크린샷 2023-12-20 오전 6.00.44.png

Deciding on what will be the key and what will be the value

programmer’s responsibility


MapReduce: Execution Framework

MapReduce Execution Framework takes care of:


Example 1: Word Count

스크린샷 2023-12-20 오전 6.02.33.png


Example 1: Word Count

스크린샷 2023-12-20 오전 6.03.02.png

Q: What are the Key and Value Pairs of Map and Reduce? Map: Key=word, Value=1

Reduce: Key=word, Value=aggregated count


Example 1: Word Count

스크린샷 2023-12-20 오전 6.03.42.png

Q: Do you see any place we can improve the efficiency?

Local aggregation at mapper will be able to improve MapReduce efficiency.


WordCount: No Combine

스크린샷 2023-12-20 오전 6.04.16.png


WordCount: Combine

스크린샷 2023-12-20 오전 6.04.34.png


MapReduce: Combiner


Combiner Example

스크린샷 2023-12-20 오전 6.05.45.png


Combine: Bandwidth Optimization


Partitioner : Load Balancing


Partitioner : Load Balancing


More on MapReduce


Example 2: Counting URLs


Example 3: Count URL access frequency


Example 4: Stock Summary


Example 5: Average salaries in regions

Untitled


Example 6: Find Common Friends