[Paper Review] DualTable: A Hybrid Storage Model for Update Optimization in Hive
DualTable is a hybrid storage model that combines HDFS for efficient batch scanning and HBase for fast random writes, enabling Hive to efficiently support update and delete operations without sacrificing query performance. Experiments show it accelerates update and delete operations by up to 10x compared to standard Hive.
Hive is the most mature and prevalent data warehouse tool providing SQL-like interface in the Hadoop ecosystem. It is successfully used in many Internet companies and shows its value for big data processing in traditional industries. However, enterprise big data processing systems as in Smart Grid applications usually require complicated business logics and involve many data manipulation operations like updates and deletes. Hive cannot offer sufficient support for these while preserving high query performance. Hive using the Hadoop Distributed File System (HDFS) for storage cannot implement data manipulation efficiently and Hive on HBase suffers from poor query performance even though it can support faster data manipulation.There is a project based on Hive issue Hive-5317 to support update operations, but it has not been finished in Hive's latest version. Since this ACID compliant extension adopts same data storage format on HDFS, the update performance problem is not solved. In this paper, we propose a hybrid storage model called DualTable, which combines the efficient streaming reads of HDFS and the random write capability of HBase. Hive on DualTable provides better data manipulation support and preserves query performance at the same time. Experiments on a TPC-H data set and on a real smart grid data set show that Hive on DualTable is up to 10 times faster than Hive when executing update and delete operations.
Motivation & Objective
- Address the lack of efficient update and delete support in Hive, which hinders migration from traditional RDBMS in enterprise environments.
- Overcome the limitations of HDFS (no random writes) and HBase (slow batch scans) for complex enterprise workloads requiring both fast updates and high query performance.
- Design a storage model that selectively stores data in HDFS or HBase based on cost and access patterns to optimize performance for mixed workloads.
- Enable efficient execution of complex stored procedures with high ratios of data manipulation operations, such as those in Smart Grid applications.
- Preserve Hive’s scalability and low-cost deployment while adding ACID-like capabilities for updates and deletes without relying on unfinished ACID extensions.
Proposed method
- DualTable uses a hybrid storage architecture where new records are written to HDFS for efficient batch scanning, while updates are stored as delta records in HBase for random write efficiency.
- A dynamic cost model determines the optimal storage location (HDFS or HBase) for each data modification based on workload characteristics and performance trade-offs.
- The system supports UPDATE and DELETE operations by applying changes to HDFS or HBase, with query engines rewriting queries to access both storage layers transparently.
- The model integrates with Hive’s execution engine, allowing standard HiveQL queries to access data from both HDFS and HBase without requiring schema or query changes.
- The system leverages existing Hive optimization techniques such as query rewriting and DAG structure optimization to improve overall execution efficiency.
- It supports incremental data manipulation via INSERT OVERWRITE for HDFS and direct DML operations on HBase, minimizing I/O overhead compared to full-file rewriting.
Experimental results
Research questions
- RQ1How can Hive efficiently support update and delete operations without sacrificing batch query performance?
- RQ2What hybrid storage strategy balances the strengths of HDFS (fast scan) and HBase (fast random write) for mixed analytical and operational workloads?
- RQ3Can a cost-based dynamic routing mechanism effectively decide whether to store updates in HDFS or HBase to minimize I/O and execution time?
- RQ4How does the proposed DualTable model perform on real-world enterprise workloads with high ratios of data manipulation operations?
- RQ5To what extent can DualTable reduce I/O overhead compared to Hive’s current INSERT OVERWRITE-based update pattern?
Key findings
- DualTable accelerates update and delete operations by up to 10 times compared to standard Hive on the same hardware, particularly on complex workloads.
- On the TPC-H benchmark and real Smart Grid data, DualTable significantly outperforms Hive in update-intensive scenarios, reducing execution time from hours to minutes.
- The hybrid model maintains high query performance by leveraging HDFS’s efficient batch scanning for read-heavy operations.
- The cost-based routing mechanism effectively balances write performance and query efficiency, minimizing unnecessary data movement.
- The system reduces I/O overhead by avoiding full-file rewriting for small updates, which is the primary bottleneck in traditional Hive update patterns.
- DualTable enables enterprise-scale applications—such as those in Smart Grids with over 17 million smart meters and 60 billion monthly measurements—to complete complex stored procedures within strict time windows (e.g., 1am–7am).
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.