Question: Assume, that a speed camera records the speed of passing cars and saves the measurements in a text file. The speed of each car
Assume, that a speed camera records the speed of passing cars and saves the measurements in a text file. The speed of each car is measured in kilometres per hour. A single row in the file contains a car registration number, a date when the speed has been measured and the speed of a car with the recorded registration number. The values are always separated with a single blank. For example, a sample file with the speed measurements contains the following lines: PKR856 12-DEC-2018 120 UPS234 17-JAN-2019 190 PKR856 12-FEB-2018 80 PKR856 01-JAN-2019 60 UPS234 21-OCT-2020 200 UPS234 22-OCT-2020 160 Assume, that a speed limit in a location of the speed camera is 60 kilometres per hour. Your task is to implement a MapReduce application, that finds an average speed of all cars, that exceeded a speed limit in the location of the speed camera. An input file with the speed measurements must include the lines listed above and it mus contain at least 20 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 speed measurements. When finished, Copy and Paste the messages from a Terminal screen into a file solution2.pdf. Deliverables A file solution2.java with a source code of the application that implement the functionality of SELECT statement given above. A file solution2.pdf with a report from compilation, creating jar file, processing, displaying the results of processing solution2.java, and listing of your input file with the speed measurements
Step by Step Solution
There are 3 Steps involved in it
solution2java package solution2 import orgapachehadoopioLongWritable import orgapachehadoopioDoubleW... View full answer
Get step-by-step solutions from verified subject matter experts
