Spark - Variable

1 - pySpark

pySpark provides shared variables in two different types.

1.1 - Broadcast

Broadcast variables are an efficient way of sending data once that would otherwise be sent multiple times automatically in closures.

1.2 - Accumulator

Accumulators can only be written by workers and read by the driver program.

They allow us to aggregate values from workers back to the driver.

Data Science
Data Analysis
Data Science
Linear Algebra Mathematics

Powered by ComboStrap