Ditp - ch2 3
Ditp - ch2 3
a 1 b 2 c 3 c 6 a 5 c 2 b 7 c 8
a 1 5 b 2 7 c 2 9 8
X 5 Y 7 Z 9
Figure 2.2: Simplified view of MapReduce. Mappers are applied to all input
Figure
2.2:
Skey-value
implified
pairs,
view
owhich
f
MapReduce.
generate M anappers
arbitraryare
number
applied
tofo
intermediate
all
input
key-‐value
key-value pairs,
which
generate
pairs.an
arbitrary
are
Reducers number
applied of
to
intermediate
key-‐value
all values associated with pairs.
theRsameeducers
key.are
applied
to
Between
all
values
associated
the map and with
reduce
the
same
phases key.
lies
Between
a barrierthe
that
map
and
reduce
involves a large phases
lies
a
barrier
distributed sort
that
involves
a
large
and groupdistributed
by. sort
and
group
by.