[Paper Review] Towards Zero-Overhead Adaptive Indexing in Hadoop
This paper proposes LIAH (Lazy Indexing and Adaptivity in Hadoop), a zero-overhead adaptive indexing system that incrementally builds clustered indexes on HDFS data blocks as a byproduct of MapReduce job execution. By piggybacking index creation on existing I/O and computation, LIAH incurs no additional I/O or memory costs, achieves up to 52× speedup over standard Hadoop, and converges to a complete index in as few as four jobs with minimal overhead—especially for early queries.
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.
Motivation & Objective
- Address the limitation of static indexing in Hadoop, where users must predefine indexes, which is impractical for unpredictable or evolving workloads.
- Overcome the high upfront cost and inflexibility of existing indexing techniques like HAIL, which require workload knowledge at upload time.
- Enable automatic, incremental, and adaptive index creation that converges quickly to a complete index without user intervention.
- Minimize indexing overhead by leveraging idle CPU cycles and existing I/O operations during MapReduce job execution.
- Support efficient indexing even when queries project only a subset of attributes, using invisible and lazy projection techniques.
Proposed method
- LIAH creates clustered indexes on HDFS data blocks during MapReduce job execution, piggybacking on existing data reads and computation.
- Indexing is parallelized across nodes and interleaved with map task computation and disk I/O, avoiding additional I/O or memory overhead.
- The system uses eager adaptive indexing to reuse performance gains from earlier indexes to accelerate subsequent indexing efforts.
- It introduces invisible projection, which allows index creation on partial attribute projections without materializing full tuples.
- Lazy projection defers full attribute reconstruction until necessary, reducing computational cost during indexing.
- LIAH dynamically controls the number of data blocks indexed per job to balance indexing effort with application performance needs.
Experimental results
Research questions
- RQ1Can indexing be performed with zero additional I/O or memory overhead in a MapReduce system?
- RQ2How can adaptive indexing be made efficient and scalable in Hadoop, especially for workloads with unpredictable or evolving access patterns?
- RQ3To what extent can index creation be hidden within the normal execution of MapReduce jobs without degrading job performance?
- RQ4How does the system balance early performance improvements with the speed of index convergence?
- RQ5Can efficient indexing be achieved even when queries project only a subset of attributes in the input data?
Key findings
- LIAH achieves up to 52× speedup over standard Hadoop and up to 24× speedup over HAIL on selective MapReduce workloads.
- The indexing overhead for the first job is only 11% over HAIL, and it drops to negligible levels (e.g., 1% for UserVisits at 10% offer rate) in subsequent jobs.
- LIAH converges to a complete index after only four MapReduce jobs when using a 25% offer rate, and after 10 jobs at a 10% offer rate.
- The invisible projection technique incurs a negligible 6% average overhead on the Synthetic dataset, even for low-selectivity queries.
- LIAH significantly outperforms Hadoop in almost all scenarios, except for the very first query with 100% offer rate, where Hadoop remains slightly faster.
- The system scales well with hardware, showing improved performance on newer CPUs, and effectively balances indexing effort with application needs through configurable offer rates.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.