28. Tez
–
itera8ve
algorithms
• Pig
can
do
itera8ve
algorithms
on
top
of
Tez
• This
uses
heavy-‐weight
itera8on
(for-‐loop
+
map)
• Future
work
for
faster
loop-‐unrolled
out-‐of-‐order
itera8on
• 1-‐1
edges
between
loops
allows
building
morsel
style
parallelism
0
1000
2000
3000
10 50 100
Timeinsecs
Iteration
k-means
MR
Tez
14.84X
13.12X
5.37X
* Source code at http://hortonworks.com/blog/new-apache-pig-features-part-2-embedding