第 2 页
Word Count over a Given Set of Web Pages see bob throw see 1 bob 1 bob 1 run 1 throw 1 see 2 see spot run see 1 spot 1 spot 1 throw 1 run 1 Can we do word count in parallel?
Word Count over a Given Set of Web Pages see bob throw see 1 bob 1 bob 1 run 1 throw 1 see 2 see spot run see 1 spot 1 spot 1 throw 1 run 1 Can we do word count in parallel?
Automatic Parallel Execution in MapReduce (Google) Handles failures automatically, e.g., restarts tasks if a node fails; runs multiples copies of the same task to avoid a slow task slowing down the whole job
Data Flow in a MapReduce Program in Hadoop • InputFormat → 1:many • Map function • Partitioner • Sorting & Merging • Combiner • Shuffling • Merging • Reduce function • OutputFormat
Lifecycle of a MapReduce Job Time Input Map Map Reduce Reduce Splits Wave 1 Wave 2 Wave 1 Wave 2 How are the number of splits, number of map and reduce tasks, memory allocation to tasks, etc., determined?
显示前 12 页。下载资料查看完整内容。
暂无评论。快来抢沙发吧!
评论 (0)
暂无评论。快来抢沙发吧!