跳到主要导航 跳到搜索 跳到主要内容

Handling Data Skew for Aggregation in Spark SQL Using Task Stealing

  • Zeyu He*
  • , Qiuli Huang
  • , Zhifang Li
  • , Chuliang Weng
  • *此作品的通讯作者
  • East China Normal University

科研成果: 期刊稿件文章同行评审

摘要

In distributed in-memory computing systems, data distribution has a large impact on performance. Designing a good partition algorithm is difficult and requires users to have adequate prior knowledge of data, which makes data skew common in reality. Traditional approaches to handling data skew by sampling and repartitioning often incur additional overhead. In this paper, we proposed a dynamic execution optimization for the aggregation operator, which is one of the most general and expensive operators in Spark SQL. Our optimization aims to avoid the additional overhead and improve the performance when data skew occurs. The core idea is task stealing. Based on the relative size of data partitions, we add two types of tasks, namely segment tasks for larger partitions and stealing tasks for smaller partitions. In a stage, stealing tasks could actively steal and process data from segment tasks after processing their own. The optimization achieves significant performance improvements from 16% up to 67% on different sizes and distributions of data. Experiments show that involved overhead is minimal and could be negligible.

源语言英语
页(从-至)941-956
页数16
期刊International Journal of Parallel Programming
48
6
DOI
出版状态已出版 - 1 12月 2020

学术指纹

探究 'Handling Data Skew for Aggregation in Spark SQL Using Task Stealing' 的科研主题。它们共同构成独一无二的学术指纹。

引用此