Help Center/ AI DataLake/ Best Practices/ Resolving Data Skew in Spark/ Troubleshooting and Resolving Data Skew/ Insufficient Partitions
Updated on 2026-11-06 GMT+08:00
Insufficient Partitions
In scenarios where data skew is caused by non-hotspot keys, if the number of job partitions is too small, each task processes a large amount of data, resulting in long-tail jobs. In this case, you can increase the number of partitions.
- If Adaptive Query Execution (AQE) is enabled (default scenario): Increase the value of spark.sql.adaptive.coalescePartitions.minPartitionNum and set spark.sql.adaptive.coalescePartitions.initialPartitionNum to the number of available cores.
- If AQE is disabled: Increase the value of spark.sql.shuffle.partitions.
Parent topic: Troubleshooting and Resolving Data Skew
What is your overall rating for this page?
0
1
2
3
4
5
6
7
8
9
10
Very dissatisfiedVery satisfied
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot