thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Data & Analytics · Intermediate

Spark Action

A Spark operation that triggers execution and returns a result to the driver or writes output, such as count, collect, show, take or write.

Definition

Each action launches one or more jobs. collect() brings all data to the driver and can cause out-of-memory errors on large datasets.

Exam tip

Avoid collect() on large DataFrames; write the result out or use take(n) instead.

Related terms