Abschnitt 1. Kapitel 6
single
Challenge: Analyzing a Text File with RDDs
Swipe um das Menü anzuzeigen
Aufgabe
Wischen, um mit dem Codieren zu beginnen
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 6
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen