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 2(4 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 25
Victoria Melbourne 125
Victoria Geelong 90
Victoria Wodonga 10
NSW Lismore 900
Queensland Brisbane 50
South Australia Adelaide 300
Western Australia Perth 200
Western Australia Albany 200
Western Australia Broome 10
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 755025
Victoria 22512510
NSW 900900900
South Australia 300300300
Western Australia 41020010
An input file with the rainfall measurement must include 10 lines listed above and it must
contain at least 10 other measurements. All additional measurements are up to you.
Save your solution in a file solution2.java. 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 solution2.pdf.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!