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:
:: response, :coco Apache
Columns in order: first the warc date, the warc record id the warc type eg metadata,
response, etc the content length, the public IP address, the target URL, the server running
the site eg apache, ngin 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 :
For the target URL "coco", find the content length of the metadata as well as the size of the
HTML DOM number of characters
Tips:
For this query you should filter by url and keep warc type "request.
Remember to restart the Spark cluster before each measurement, to avoid hot caches, or
you can clear the cache with the command spark.catalog.clearCache
Task :
Perform Task using DataFramesSpark SQL and parquet file
Task :
Please give instruction on how to measure the execution time for Task:
MapReduceRDD 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
