arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1410.4156cs.DB
收藏

GYM:MapReduce中的多轮连接算法

GYM: A Multiround Join Algorithm In MapReduce

Foto Afrati, Manas Joglekar, Christopher Ré, Semih Salihoglu, Jeffrey D. Ullman

摘要:

多轮算法现在通常用于分布式数据处理系统,但算法可以从运行更多轮中受益的程度还没有得到很好的理解。本文回答了这个问题的一个频谱轮计算问题的等值$n$关系。具体地说,给定任何查询$Q$宽度$\w$,{ \em相交宽度} $\iw$,输入大小$\mathrm{IN}$,输出大小$\mathrm{OUT}$,和一个集群的机器与$M$内存可用的每台机器,我们表明:(1)$Q$可以计算在$O(n)$轮$O(n\frac{(\mathrm{IN}^{\w} + \mathrm{OUT})^2}{M})$通信成本。(2)$Q$可以在具有$O(n\frac{(\mathrm{IN}^{\max(\w, 3\iw)} + \mathrm{OUT})^2}{M})$通信成本的$O(\log(n))$轮中计算。\end{itemize}交集宽度是查询和查询的广义超树分解(GHD)的新概念,我们引入GHD来捕获GHD的相邻循环分量的连接情况。我们实现我们的第一个结果,通过引入一个分布式和广义版本的Yannakakis的算法,称为GYM。GYM将具有宽度PDMATHABM 0和深度$d$的$Q$的任何GHD作为输入,并且计算$O(d + \log(n))$轮中的$Q$和$O(n\frac{(\mathrm{IN}^{\w} + \mathrm{OUT})^2}{M})$通信成本。我们通过展示如何构造具有宽度$\max(\w, 3\iw)$和深度$O(\log(n))$的$Q$的GHD来实现我们的第二个结果。我们描述了另一种技术来构建GHD与较长的宽度和较短的深度,展示了一个频谱的权衡之间的通信和轮数。

英文摘要:

Multiround algorithms are now commonly used in distributed data processing systems, yet the extent to which algorithms can benefit from running more rounds is not well understood. This paper answers this question for a spectrum of rounds for the problem of computing the equijoin of $n$ relations. Specifically, given any query $Q$ with width $\w$, {\em intersection width} $\iw$, input size $\mathrm{IN}$, output size $\mathrm{OUT}$, and a cluster of machines with $M$ memory available per machine, we show that: (1) $Q$ can be computed in $O(n)$ rounds with $O(n\frac{(\mathrm{IN}^{\w} + \mathrm{OUT})^2}{M})$ communication cost. (2) $Q$ can be computed in $O(\log(n))$ rounds with $O(n\frac{(\mathrm{IN}^{\max(\w, 3\iw)} + \mathrm{OUT})^2}{M})$ communication cost. \end{itemize} Intersection width is a new notion of queries and generalized hypertree decompositions (GHDs) of queries we introduce to capture how connected the adjacent cyclic components of the GHDs are. We achieve our first result by introducing a distributed and generalized version of Yannakakis's algorithm, called GYM. GYM takes as input any GHD of $Q$ with width $\w$ and depth $d$, and computes $Q$ in $O(d + \log(n))$ rounds and $O(n\frac{(\mathrm{IN}^{\w} + \mathrm{OUT})^2}{M})$ communication cost. We achieve our second result by showing how to construct GHDs of $Q$ with width $\max(\w, 3\iw)$ and depth $O(\log(n))$. We describe another technique to construct GHDs with longer widths and shorter depths, demonstrating a spectrum of tradeoffs one can make between communication and the number of rounds.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑