Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Cloud and Big Data

File

Q 1. Select count (*) from movies

 Mapper

o Input (Line 1: M1, Inception, Christopher Nolan, Sci-fi, 32)


Emit (“Movie_Count”, 1)

o Input (Line 2: M2, ET, Steven Spielberg, Sci-fi, 12)


Emit (“Movie_Count”, 2)
o Input (Line 3: M3, Schinders List, Steven Spielberg, Historical, 21)
Emit (“Movie_Count”, 3)
o Input (Line 4: M4, Interstellar, Christopher Nolan, Sci-fi, 43)

Emit (“Movie_Count”, 4)
o Input (Line 5: M5, Jurassic Park, Steven Spielberg, Sci-fi, 22)
Emit (“Movie_Count”, 5)
o Input (Line 6: M6, The Dark Knight, Christopher Nolan, Thriller, 35)

Emit (“Movie_Count”, 6)

 Reducer 1

o Input (“Movie_Count”, [1,1,1,1,1,1])


o Output (“Movie_Count”, 6)

You might also like