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

Hadoop中的零开销自适应索引

Towards Zero-Overhead Adaptive Indexing in Hadoop

Stefan Richter, Jorge-Arnulfo Quiané-Ruiz, Stefan Schuh, Jens Dittrich

摘要:

一些研究工作集中在MapReduce系统中支持索引访问。这些工作使用户能够以数量级的速度显著加快选择性MapReduce作业。然而,所有这些建议都要求用户预先创建索引,这在某些工作负载不断变化或难以预测的应用程序(例如科学和社会应用程序)中可能是一项艰巨的任务。为了克服这个问题,我们提出了LIAH(Hadoop中的惰性索引和自适应性),这是一种并行的自适应方法,用于以最小的成本为MapReduce系统建立索引。LIAH的主要思想是通过在HDFS数据块上创建聚集索引作为执行MapReduce作业的副产品来自动和增量地适应用户的工作负载。除了在多个计算节点上分配索引工作之外,LIAH还将索引与地图任务计算和磁盘I/O并行化。所有这一切都没有任何额外的数据复制在主存储器和最低限度的同步。LIAH的美妙之处在于它将索引创建搭载在map任务上,这些任务无论如何都要将相关数据从磁盘读取到主存。因此,LIAH不会引入任何额外的读I/O成本,也不会利用空闲的CPU周期。因此,与现有的自适应索引工作相比,LIAH具有非常低的(或不可见的)索引开销,通常用于第一个作业。不过,LIAH可以快速收敛到一个完整的索引,即所有HDFS数据块都被索引。特别是,LIAH可以用快速的完整索引收敛来换取早期作业运行时的改进。我们将LIAH与HAIL(一种最先进的索引技术)以及标准Hadoop在索引开销和工作负载性能方面进行了比较。

英文摘要:

Several research works have focused on supporting index access in MapReduce systems. These works have allowed users to significantly speed up selective MapReduce jobs by orders of magnitude. However, all these proposals require users to create indexes upfront, which might be a difficult task in certain applications (such as in scientific and social applications) where workloads are evolving or hard to predict. To overcome this problem, we propose LIAH (Lazy Indexing and Adaptivity in Hadoop), a parallel, adaptive approach for indexing at minimal costs for MapReduce systems. The main idea of LIAH is to automatically and incrementally adapt to users' workloads by creating clustered indexes on HDFS data blocks as a byproduct of executing MapReduce jobs. Besides distributing indexing efforts over multiple computing nodes, LIAH also parallelises indexing with both map tasks computation and disk I/O. All this without any additional data copy in main memory and with minimal synchronisation. The beauty of LIAH is that it piggybacks index creation on map tasks, which read relevant data from disk to main memory anyways. Hence, LIAH does not introduce any additional read I/O-costs and exploit free CPU cycles. As a result and in contrast to existing adaptive indexing works, LIAH has a very low (or invisible) indexing overhead, usually for the very first job. Still, LIAH can quickly converge to a complete index, i.e. all HDFS data blocks are indexed. Especially, LIAH can trade early job runtime improvements with fast complete index convergence. We compare LIAH with HAIL, a state-of-the-art indexing technique, as well as with standard Hadoop with respect to indexing overhead and workload performance.

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

↑