Sezione 1. Capitolo 6
single
Challenge: Analyzing a Text File with RDDs
Scorri per mostrare il menu
Compito
Scorri per iniziare a programmare
Download the flights dataset and load it into a Spark DataFrame, then convert it to an RDD. Using only RDD transformations and actions – no DataFrame methods – complete the following:
- Count the total number of flights in the dataset and store it in
total_flights; - Filter flights where
DEPARTURE_DELAYis greater than 30 minutes, count them, and store the result indelayed_count; - From the delayed flights, extract unique airlines and store the sorted list in
delayed_airlines; - Find the maximum
DISTANCEvalue usingreduce()and store it inmax_distance.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 1. Capitolo 6
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione