arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1203.5485cs.DBcs.DC
收藏

BlinkDB:在超大数据上具有有限错误和有限响应时间的并行计算

BlinkDB: Queries with Bounded Errors and Bounded Response Times on Very Large Data

Sameer Agarwal, Aurojit Panda, Barzan Mozafari, Samuel Madden, Ion Stoica

摘要:

在本文中,我们提出了BlinkDB,一个大规模并行,基于采样的近似查询引擎运行特设,交互式SQL查询的大量数据。BlinkDB建立的关键见解是,人们通常可以在没有完美答案的情况下做出合理的决策。例如,使用分布式系统日志集合可靠地检测故障服务器不需要分析系统处理的每个请求。基于这一见解,BlinkDB允许人们权衡查询准确性和响应时间,通过对数据样本运行查询并显示用有意义的错误条注释的结果来实现对海量数据的交互式查询。为了实现这一点,BlinkDB使用了两个关键思想,使其与该领域以前的工作有所区别:(1)自适应优化框架,该框架随着时间的推移从原始数据中构建和维护一组多维,多分辨率的样本,以及(2)动态样本选择策略,该策略根据查询的准确性和/或响应时间要求选择适当大小的样本。我们已经构建了BlinkDB的开源版本,并使用著名的TPC-H基准测试以及来自Conviva Inc.的真实分析工作负载验证了其有效性。我们在100个节点集群上进行的实验表明,BlinkDB可以在不到2秒的时间内回答来自真实查询跟踪的各种查询,最多可处理17 TB的数据(比Hive快100多个\times),误差在2 - 10%以内。

英文摘要:

In this paper, we present BlinkDB, a massively parallel, sampling-based approximate query engine for running ad-hoc, interactive SQL queries on large volumes of data. The key insight that BlinkDB builds on is that one can often make reasonable decisions in the absence of perfect answers. For example, reliably detecting a malfunctioning server using a distributed collection of system logs does not require analyzing every request processed by the system. Based on this insight, BlinkDB allows one to trade-off query accuracy for response time, enabling interactive queries over massive data by running queries on data samples and presenting results annotated with meaningful error bars. To achieve this, BlinkDB uses two key ideas that differentiate it from previous work in this area: (1) an adaptive optimization framework that builds and maintains a set of multi-dimensional, multi-resolution samples from original data over time, and (2) a dynamic sample selection strategy that selects an appropriately sized sample based on a query's accuracy and/or response time requirements. We have built an open-source version of BlinkDB and validated its effectiveness using the well-known TPC-H benchmark as well as a real-world analytic workload derived from Conviva Inc. Our experiments on a 100 node cluster show that BlinkDB can answer a wide range of queries from a real-world query trace on up to 17 TBs of data in less than 2 seconds (over 100\times faster than Hive), within an error of 2 - 10%.

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

↑