Spark - Project - Apache log parsing - Top 5 time frames for high traffic

Problem 2-

Write spark code to find out the top five-time frame for high traffic (which day of the week or hour of the day receives peak traffic, this information will help the company to manage resources for handling peak traffic load)

Sample Output-

timeFrame        req_cnt

31/Aug/1995:11   6319
31/Aug/1995:10   6283
31/Aug/1995:13   5948
30/Aug/1995:15   5919
31/Aug/1995:09   5627

Note - If you are stuck, please take inspiration from this solution by one of our students.


No hints are availble for this assesment

Answer is not availble for this assesment

Loading comments...