[Paper Review] Apache Hive: From MapReduce to Enterprise-grade Big Data Warehousing
This paper presents Apache Hive's evolution from a batch-oriented ETL tool to an enterprise-grade data warehouse by integrating ACID transactions, a cost-based optimizer via Calcite, low-latency runtime via Tez and LLAP, and federated query capabilities across diverse storage systems. The result is a scalable, interactive, and SQL-compliant system capable of handling modern analytical workloads with sub-second latency on TB-scale data.
Apache Hive is an open-source relational database system for analytic big-data workloads. In this paper we describe the key innovations on the journey from batch tool to fully fledged enterprise data warehousing system. We present a hybrid architecture that combines traditional MPP techniques with more recent big data and cloud concepts to achieve the scale and performance required by today's analytic applications. We explore the system by detailing enhancements along four main axis: Transactions, optimizer, runtime, and federation. We then provide experimental results to demonstrate the performance of the system for typical workloads and conclude with a look at the community roadmap.
Motivation & Objective
- To modernize Apache Hive from a batch ETL tool into a fully-fledged enterprise data warehouse system.
- To address the growing demand for low-latency, interactive SQL queries in big data environments.
- To enable full ACID transaction support for updatable data warehousing workloads.
- To unify query execution across heterogeneous storage systems through federation.
- To enhance query optimization, runtime efficiency, and system scalability for enterprise workloads.
Proposed method
- Integrated Apache Calcite as the core query optimizer to enable cost-based optimization and advanced SQL features.
- Replaced MapReduce with Apache Tez as the execution engine to reduce latency and improve query execution flexibility.
- Introduced LLAP (Low Latency Analytical Processing) as a persistent, in-memory runtime layer to cache data and avoid container startup overhead.
- Extended SQL support with correlated subqueries, integrity constraints, and advanced OLAP functions for full SQL-99 compliance.
- Enabled ACID transactions using a transaction manager built on the Hive Metastore with snapshot isolation.
- Enhanced federation by extending storage handlers and leveraging Calcite’s relational algebra to push down predicates and push operations to external systems.
Experimental results
Research questions
- RQ1How can Hive be extended to support ACID transactions while maintaining scalability and compatibility with Hadoop?
- RQ2What architectural changes are required to reduce query latency and enable interactive analytics in a big data environment?
- RQ3How can a cost-based optimizer be effectively integrated into a SQL-on-Hadoop system to improve query performance?
- RQ4What mechanisms enable seamless federation of queries across multiple storage systems in a unified SQL interface?
- RQ5How can Hive evolve from a batch processing tool to a full-featured enterprise data warehouse without sacrificing its core reliability and scalability?
Key findings
- Hive achieved sub-second average query latency on TB-scale data using LLAP, enabling interactive and ad-hoc querying.
- The integration with Calcite enabled advanced optimization techniques, including query reoptimization and materialized view rewriting, significantly improving query performance.
- ACID transaction support was successfully implemented using snapshot isolation via the Hive Metastore, enabling upserts, deletes, and merges.
- Federated querying allowed seamless access to data in systems like Kafka, HBase, and cloud storage via pushdown operations and unified SQL interface.
- Runtime improvements through vectorized execution and columnar storage reduced processing time by up to 10x in benchmark workloads.
- The community roadmap includes multi-statement transactions, improved statistics feedback for cardinality estimation, and standalone deployment of the Metastore for multi-engine compatibility.
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.