Title
AutoMJ: Towards Efficient Multi-way Join Query on Distributed Data-Parallel Platform
Abstract
The multi-way join query has attracted considerable attention from research community for its importance in many big data analytic applications. For the multi-round multi-way join algorithm in distributed data-parallel platforms, the huge communication cost caused by shuffling large intermediate results over the network is the main bottleneck. The one-round multi-way join algorithm processes the join query in a single communication round, which can significantly reduce the communication cost in complex queries, including cyclic queries. However, the one-round method is not always superior to the multi-round method, because the intermediate result size of the multi-round method may the much smaller than the size of data shuffled in the one-round method. Therefore, it is challenging to choose the best multi-way join algorithm in practice. To solve this problem, in this paper, we present AutoMJ, an efficient framework for multi-way join queries. In AutoMJ, we propose a novel automatic join strategy selection model based on the size estimation of intermediate join results. AutoMJ chooses the multi-way join strategy with the minimal shuffle data size. In addition, we propose an optimized HyperCube algorithm for the one-round multi-way join. We have implemented the prototype of AutoMJ on the widely-used distributed data-parallel platform Apache Spark. Experiments show that for multi-way join queries with large intermediate results, the one-round join strategy can outperform the multi-round join strategy built in Spark SQL 1.2 - 159.3× faster. In contrast, the multi-round join strategy is 2.1 - 6.2× faster than the one-round method for the queries with small intermediate results. Experiments also show that the relative error of size estimation can be within 0.1 for the Twitter dataset and 0.25 for the Wikidata dataset. Furthermore, experiments verify that the automatic join strategy selection model is effective for choosing the optimal multi-way join algorithm.
Year
DOI
Venue
2017
10.1109/ICPADS.2017.00032
2017 IEEE 23rd International Conference on Parallel and Distributed Systems (ICPADS)
Keywords
Field
DocType
multi-way join,HyperCube shuffle,distributed computing,join size estimation,Apache Spark
SQL,Bottleneck,Spark (mathematics),Computer science,Shuffling,Software,Big data,Approximation error,Hypercube,Distributed computing
Conference
ISSN
ISBN
Citations 
1521-9097
978-1-5386-3208-6
0
PageRank 
References 
Authors
0.34
19
5
Name
Order
Citations
PageRank
Guanghui Zhu132.15
xiaoqi wu221.39
Rong Gu311017.77
Chunfeng Yuan456.90
Yihua Huang586.61