MapReduce & Spark
Step 9 of 9 in Data Science · Build · Medium
When data doesn't fit on one machine, split it, process pieces in parallel (map), then combine (reduce). Spark keeps data in memory between steps.
Build it
Word count & join
PySpark word count on a book, then join 5M generated orders with 100k customers, comparing a normal and a broadcast join.
Done when: Same results; timing difference noted from the Spark UI.
Case study: Google's MapReduce
- Indexing the web needed thousands of cheap machines that often failed.
- The framework hid failure handling so engineers just wrote map and reduce.
- Hadoop and later Spark brought the idea to everyone.
Resources
- Wikipedia: Apache Spark Article
- Spark quick start Article
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map