In this assignment, you will analyze a log file from a web server to count the number of hits made from each unique IP address.
Step 1: Write the mapper, reducer, and driver code so that the final output of your program should be a file containing a list of IP addresses, and the number of hits from that address. The main idea is to examine the input data file to learn about the format of the input. Your mapper then will be mainly parsing an input line to extract the IP address. You can just discard lines that do not conform to the expected format.
Test data: weblogs_small
Get Answers For Free
Most questions answered within 1 hours.