Jump to content

Apache Hive

From Open Lakehouse Wiki
Apache Hive
Developer Apache Software Foundation; created at Facebook
Initial release Apache top-level project since September 2010
Latest release 4.2.1
(2026-08-24)
Written in Java
Type SQL data warehouse system and metastore
License Apache License 2.0
Website hive.apache.org
Repository github.com/apache/hive
Related Hive Metastore, Hive on Spark, Apache Spark, Trino, Apache Iceberg
Last verified 22 November 2026 against the Apache Hive home and downloads pages (releases and end-of-life notices to 4.2.1), HiveConf.java and the top-level modules at the rel/release-3.1.3, rel/release-4.0.0-alpha-1, rel/release-4.0.0-alpha-2, rel/release-4.0.0, rel/release-4.0.1, rel/release-4.1.0 and rel/release-4.2.1 tags, HIVE-12300, HIVE-26134, HIVE-27972, the ASF committee information and the 2009 VLDB paper on Hive.
Status: Active. The Hive 1.x, 2.x and 3.x release lines are end of life (declared in 2024); the 4.x line is maintained. Hive 4 removed the Spark execution engine, and the MapReduce engine has been deprecated since Hive 2.[1]

Apache Hive is a distributed SQL data warehouse system that runs queries over files in distributed storage, together with the Hive Metastore, a service that stores table metadata for Hive and for other engines.[2] Hive was built at Facebook to give Hadoop users a SQL-like language instead of hand-written MapReduce programs.[3] Today the two halves of the project have different roles in an open lakehouse: the metastore is still a widely used data catalog, while the query engine competes with engines such as Apache Spark and Trino.

Query engine and metastore

The name "Hive" covers two things that are often confused.

Hive query engine (HiveServer2) Hive Metastore (HMS)
What it does Compiles HiveQL into jobs and runs them; HiveServer2 serves JDBC and ODBC clients[2] Stores databases, tables, partitions and their locations, and serves them over a Thrift API[2]
Who uses it Hive users and BI tools that connect to HiveServer2 Hive, Impala, Spark and other engines[2]
Runs on Apache Tez (default in Hive 4.1 and later) or the deprecated MapReduce engine[4] A standalone service backed by a relational database
Lakehouse role One SQL engine among several A shared catalog, and since 4.1.0 also an Iceberg REST catalog endpoint[1]

A system that "uses Hive" may use only the metastore. Apache Spark and Trino read and write tables registered in the Hive Metastore without running any Hive queries; see Hive Metastore for how each engine connects.

Execution engines

Hive compiles queries for one of several execution engines, selected with hive.execution.engine. The available engines and the default have changed across releases, as the configuration source at each release tag shows:

Release Engines Default
3.1.3 mr, tez, spark mr[5]
4.0.0-alpha-1 mr, tez, spark mr
4.0.0-alpha-2 to 4.0.1 mr, tez mr[6]
4.1.0 to 4.2.1 tez, mr tez[4]
  • MapReduce was deprecated in Hive 2.0.0 (HIVE-12300).[7] It is still selectable in Hive 4.2.1, where the configuration describes it as a historical engine that "may be removed without further warning".[4]
  • Spark (Hive on Spark) was removed from the main branch by HIVE-26134 in 2022; the spark-client module is present at the 4.0.0-alpha-1 tag and absent from 4.0.0-alpha-2 onward.[8] See Hive on Spark.
  • Tez became the default in Hive 4.1.0 (HIVE-27972).[9] LLAP (Low Latency Analytical Processing) adds persistent daemons and caching on top of Tez for interactive queries.[2]

Features

The Hive project lists, among its main features, full ACID transactions for ORC tables and insert-only transactions for other formats, built-in compaction, a cost-based optimizer based on Apache Calcite, replication, and Kerberos authentication with Apache Ranger for authorization.[2] Hive reads and writes Apache Iceberg tables through a storage handler; the iceberg module is part of the source tree from the 4.0.0-alpha-1 tag onward.[2][10]

Releases and end of life

The Hive 4 line is the only maintained line. The project's news page records these milestones:[1]

  • 4.0.0, the first final Hive 4 release, on 29 March 2024.
  • End of life of the 1.x line (April 2024), the 2.x line (May 2024) and the 3.x line (October 2024). The 3.x notice says no further updates or releases are planned.
  • 4.1.0 on 31 July 2025, which added JDK 17 support, the standalone metastore packages and a REST catalog server.
  • 4.2.0 on 23 November 2025, which made JDK 21 the minimum Java version.
  • 4.2.1 on 24 August 2026, a bug-fix release with security fixes in the metastore, HiveServer2 and the Avro SerDe.

History

A Facebook team described Hive in a 2009 VLDB paper as an open source data warehouse on Hadoop whose SQL-like language, HiveQL, was compiled into MapReduce jobs.[3] Hive became a top-level Apache project in September 2010.[11] HCatalog, a table and storage management layer for Hadoop, merged into Hive in March 2013.[1]

See also

References

  1. ↑ 1.0 1.1 1.2 1.3 Downloads (Apache Hive news and releases). Apache Software Foundation.Retrieved 2026-11-22.
  2. ↑ 2.0 2.1 2.2 2.3 2.4 2.5 2.6 Apache Hive. Apache Software Foundation.Retrieved 2026-11-22.
  3. ↑ 3.0 3.1 Hive: A Warehousing Solution Over a Map-Reduce Framework. Proceedings of the VLDB Endowment, vol. 2, 2009.Retrieved 2026-11-22.
  4. ↑ 4.0 4.1 4.2 HiveConf.java (rel/release-4.2.1). Apache Software Foundation.Retrieved 2026-11-22.
  5. ↑ HiveConf.java (rel/release-3.1.3). Apache Software Foundation.Retrieved 2026-11-22.
  6. ↑ HiveConf.java (rel/release-4.0.0). Apache Software Foundation.Retrieved 2026-11-22.
  7. ↑ HIVE-12300: deprecate MR in Hive 2.0. Apache Software Foundation JIRA.Retrieved 2026-11-22.
  8. ↑ HIVE-26134: Remove Hive on Spark from the main branch. Apache Software Foundation JIRA.Retrieved 2026-11-22.
  9. ↑ HIVE-27972: Set 'tez' as default value in hive.execution.engine. Apache Software Foundation JIRA.Retrieved 2026-11-22.
  10. ↑ apache/hive at rel/release-4.0.0. GitHub.Retrieved 2026-11-22.
  11. ↑ ASF committee information (public). Apache Software Foundation.Retrieved 2026-11-22.