Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimizes Apache Spark jobs through partitioning, caching, shuffle reduction, and memory tuning for slow or large-scale pipelines.
78% 91%+13 ptsof test cases passed
Passed 21 of 23 test cases with the skill, and 18 of 23 without it.
We are writing a large PySpark DataFrame to S3 in Parquet format. To ensure fast reads and proper row group sizing, write the PySpark DataFrame write call configured with the optimal compression codec and block size.
Configures option parquet.block.size to 128MB (134217728 bytes).
3 of 3 safety checks passed
Production patterns for optimizing Apache Spark jobs including partitioning strategies, memory management, shuffle optimization, and performance tuning.
Driver Program
↓
Job (triggered by action)
↓
Stages (separated by shuffles)
↓
Tasks (one per partition)
| Factor | Impact | Solution |
|---|---|---|
| Shuffle | Network I/O, disk I/O | Minimize wide transformations |
| Data Skew | Uneven task duration | Salting, broadcast joins |
| Serialization | CPU overhead | Use Kryo, columnar formats |
| Memory | GC pressure, spills | Tune executor memory |
| Partitions | Parallelism | Right-size partitions |
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.