Artificial Intelligence (AI) & Machine Learning Course for Managers

 Enroll Now

Spark Project - Log Parsing

3 / 5
   

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