Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,
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 3:
Perform Task 1 using DataFrames/Spark SQL and parquet file
Task 3:
Please give instruction on how to measure the execution time for Task1:
Map/Reduce-RDD API
Spark SQL to CSV files (you need to define the schema of each file)
Spark SQL to parquet file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

8. Explain the contact hypothesis.

Answered: 1 week ago

Question

2. Define the grand narrative.

Answered: 1 week ago