Question: Task 2 ( 4 marks ) Implementation of MapReduce application Assume, that The Bureau of Meteorology records total yearly rainfall in a number of cities
Task marks
Implementation of MapReduce application
Assume, that The Bureau of Meteorology records total yearly rainfall in a number of cities
located in different states. The measurements are recorded in a text file, that contains data
from a period of the last year.
For example, a sample file with the recorded amounts of rainfall could be the following.
The first column contains a name of a state, the second column contains a name of a city
in a state and the third column contains the total rainfall depth per year measured in mm
Queensland Gold Coast
Victoria Melbourne
Victoria Geelong
Victoria Wodonga
NSW Lismore
Queensland Brisbane
South Australia Adelaide
Western Australia Perth
Western Australia Albany
Western Australia Broome
Your task is to implement a MapReduce application, that finds the total rainfall in each
state, the largest rainfall in one location in each state and the smallest rainfall in one
location in each state.
For example, your application should generate the following outputs when processing the
data listed above.
Queensland
Victoria
NSW
South Australia
Western Australia
An input file with the rainfall measurement must include lines listed above and it must
contain at least other measurements. All additional measurements are up to you.
Save your solution in a file solutionjava. When ready, compile, create jar file,
and process your application. Display the results created by the application. Next, list your
input file with the rainfall measurements. When finished, Copy and Paste the messages
from a Terminal screen into a file solutionpdf
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
