Question: Consider a warc.csv file related data. An indicative line is: 2 0 1 7 - 0 3 - 2 2 T 2 2 : 1

Consider a warc.csv file related data. An indicative line is:
2017-03-22T22:13:57Z, reoord id, response, 40802, ip
adrress, URL, Server, HTML DOM
Columns in order: first the warc date, the warc record id, the warc type (e.g. metadata,
response, etc), the content length, the public IP address, the target URL, the server running
the site (eg apache, nginx, etc), and finally the overall content of the page with the entire
HTML DOM.
Using RDDs write a Pyhton code to answer the following.
Task 1:
For the time range between 2017-03-2222:00 and 2017-03-2223:00, find the 5 most used
servers. Results to be given in descending order of servers.
Tips:
For this query you will need to filter out the records that have null values so that
they are not taken into account in the calculation.
You will need to process the date with an appropriate Python library.
Task 2:
Perform Task 1 using DataFrames/Spark SQL and parquet file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!