Open presentation, training material. Presented at CSIRO Big Data 2.0 workshop in September 2013, North Ryde, Australia. Animated by hands-on examples.
29. ●
map(String input_key, String input_value)
foreach word w in input_value:
emit(w, 1)
reduce(String output_key,
Iterator<int> intermediate_values)
set count = 0
foreach v in intermediate_values:
count += v
emit(output_key, count)
54. https://github.com/tomaszbednarz/pig-abc-toilets
●
●
●
We have list of local ABC Radio
stations in Australia
We have list of all Public Toilets
across Australia
We want to find a closest toilet to
a Radio Station
Demonstration of:
●
●
●
Data Schemas
Use of external libraries
Google Maps API