1 Apply your MapReduce programming knowledge and write a MapReduce program to
process a dataset with multiple temperatures for a year. You need to process the dataset to find out the maximum temperature for each year in the dataset.
Sample Output :
Year Maximum Temperature
1900 36 1901 48 1902 49 Your task in this assignment is to process the �temperature� records using MapReduce program and find out the maximum temperature during each year in this dataset.
Write down the map and reduce class logic in your file.
Q.2 Write a MapReduce program to process a dataset(Weather.txt) with temperature
records. You need to find the Hot and Cold days in a year based on the maximum and minimum temperatures on those days. Your task is to find out the dates with maximum temperature greater than 40 (A Hot Day) and minimum temperature lower than 10 (A Cold Day).
(NO NEED OF WRITING REDUCER LOGIC ).See the dataset,
you can directly get the desired result from the mappers logic. Hint:1.Extract the date with the help of substring: String date = line.substring(6, 14); 2.extract the max(6th column)and minimum temperature( 7th column) float temp_Max = Float.parseFloat(line.substring(38, 45).trim()); float temp_Min = Float.parseFloat(line.substring(47, 53).trim());[trim function is used to remove the leading and traling whitespaces.
3.no need to specify reduce output key and value class in main function.