Declarative MapReduce
1
Declarative MapReduce 1 Declarative Languages Describe what you - - PowerPoint PPT Presentation
Declarative MapReduce 1 Declarative Languages Describe what you want to do not how to do it The most popular example is SQL Can we compile SQL queries into MapReduce program(s)? 2 Relational Operators Projection - SELECT revenue
1
2
SELECT revenue – expenses AS profit FROM …
SELECT … WHERE cost > 5000
SELECT SUM(cost)
SELECT SUM(cost) GROUP BY product_id
SELECT … FROM Employee, Department WHERE Employee.dept_id = Deptartment.id
3
host logname time method url response bytes referer useragent
pppa006.compuserve.com - 807256800GET /images/launch-logo.gif 200 1713 vcc7.langara.bc.ca
/shuttle/missions/missions.html 200 8677 pppa006.compuserve.com - 807256806GET /history/apollo/images/apollo-logo1.gif 200 1173 bettong.client.uq.oz.au
/history/skylab/skylab.html 304 bettong.client.uq.oz.au
/images/ksclogosmall.gif 304 202.32.48.43
/shuttle/resources/orbiters/atlantis.gif 404 bettong.client.uq.oz.au
/history/apollo/images/apollo-logo.gif 200 3047 ad03-053.compuserve.com - 807257487GET /cgi-bin/imagemap/countdown70?284,288 302 85 hella.stm.it
/shuttle/missions/sts-70/images/DSC-95EC-0001.jpg 200 513911
4
5
6
7
8
9
10
11
12
13
14
15
Input Select Project Grouped Aggregate
16
17
Map
18
Map Reduce
19
20
21
22
23
24
Olston, Christopher, Benjamin Reed, Utkarsh Srivastava, Ravi Kumar, and Andrew Tomkins. "Pig latin: a not-so-foreign language for data processing." In Proceedings of the 2008 ACM SIGMOD international conference on Management of data, pp. 1099-1110. ACM, 2008.
25