Docsity

MapReduce and Distributed File Systems: A Comprehensive Overview, Slides of Deductive Database Systems

Partial preview of the text

Download MapReduce and Distributed File Systems: A Comprehensive Overview and more Slides Deductive Database Systems in PDF only on Docsity!

1

Map-Reduce and Its Children

Distributed File Systems Map-Reduce and Hadoop Dataflow Systems Extensions for Recursion

2

Distributed File Systems

Chunking Replication Distribution on Racks

4

Compute Nodes

Organized into racks.

Intra-rack connection typically gigabit speed.

Inter-rack connection faster by a small factor.

5

Racks of Compute Nodes

File

Chunks

7

Implementations

GFS (Google File System – proprietary).

HDFS (Hadoop Distributed File System –

open source).

CloudStore (Kosmix File System, open

source).

8

Above the DFS

Map-Reduce Key-Value Stores

SQL Implementations

10

Map-Reduce Systems

Map-reduce (Google) and open-source (Apache) equivalent Hadoop.

Important specialized parallel computing tool.

Cope with compute-node failures.

 Avoid restart of the entire job.

11

Key-Value Stores

BigTable (Google), Hbase, Cassandra

(Apache), Dynamo (Amazon).

 Each row is a key plus values over a flexible set of columns.  Each column component can be a set of values.

13

SQL-Like Systems – (2)

Sawzall – Google implementation of

parallel select + aggregation.

Scope – Microsoft implementation of

restricted SQL.

14

Map-Reduce

Formal Definition

Fault-Tolerance Example: Join

16

Map-Reduce Pattern

Map tasks

Reduce tasks

Input from DFS

Output to DFS

“key”-value pairs

17

Map-Reduce Algorithms

Map tasks convert inputs to key-value

pairs.

 “keys” are not necessarily unique.

Outputs of Map tasks are sorted by key,

and each key is assigned to one Reduce

task.

Reduce tasks combine values associated with a key.

19

Things Map-Reduce is Good At

  1. Matrix-Matrix and Matrix-vector multiplication.  One step of the PageRank iteration was the original application.
  2. Relational algebra operations.  We’ll do an example of the join.
  3. Many other “embarrassingly parallel” operations.

20

Joining by Map-Reduce

Suppose we want to compute

R(A,B) JOIN S(B,C), using k Reduce

tasks.  I.e., find tuples with matching B-values.

R and S are each stored in a chunked

file.