<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Hive_Metastore</id>
	<title>Hive Metastore - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://openlakehouse.io/w/index.php?action=history&amp;feed=atom&amp;title=Hive_Metastore"/>
	<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Hive_Metastore&amp;action=history"/>
	<updated>2026-12-06T00:08:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://openlakehouse.io/w/index.php?title=Hive_Metastore&amp;diff=93&amp;oldid=prev</id>
		<title>Open Lakehouse Wiki sync: Sync from open-lakehouse/wiki@f2492a3</title>
		<link rel="alternate" type="text/html" href="https://openlakehouse.io/w/index.php?title=Hive_Metastore&amp;diff=93&amp;oldid=prev"/>
		<updated>2026-11-23T00:34:51Z</updated>

		<summary type="html">&lt;p&gt;Sync from open-lakehouse/wiki@f2492a3&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Infobox concept&lt;br /&gt;
| name            = Hive Metastore&lt;br /&gt;
| also_known_as   = HMS, Hive metastore service&lt;br /&gt;
| field           = Data management, table catalogs&lt;br /&gt;
| key_parts       = Thrift API service, relational database for metadata, warehouse directory, optional Iceberg REST catalog endpoint&lt;br /&gt;
| implementations = [[Apache Hive]] (standalone metastore); clients in [[Apache Spark]], [[Trino]] and [[Apache Iceberg]]&lt;br /&gt;
| related         = [[Data catalog]], [[Iceberg REST catalog]], [[Apache Polaris]], [[Unity Catalog]]&lt;br /&gt;
}}&lt;br /&gt;
{{Verified|2026-11-22|the Apache Hive downloads page (releases to 4.2.1), MetastoreConf.java and HiveConf.java at rel/release-4.2.1, the standalone-metastore module at that tag, HIVE-28059 and HIVE-29062, HiveUtils.scala and docs/sql-data-sources-hive-tables.md at the v4.3.0 tag of apache/spark, CatalogUtil.java at apache-iceberg-1.12.0 and the Trino 484 metastore documentation}}&lt;br /&gt;
{{Status|active |note=No Hive release deprecates the metastore. Hive 4.1.0 ships it as a standalone component and adds an Iceberg REST catalog endpoint to it; the older Hive 1.x, 2.x and 3.x release lines are end of life. |ref=&amp;lt;ref name=&amp;quot;downloads&amp;quot;&amp;gt;{{Cite web |url=https://hive.apache.org/general/downloads/ |title=Downloads (Apache Hive news and releases) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Hive Metastore&amp;#039;&amp;#039;&amp;#039; (HMS) is the metadata service of [[Apache Hive]]: it stores the names, schemas, partitions and storage locations of tables in a relational database and serves them to engines through a Thrift API.&amp;lt;ref name=&amp;quot;hivehome&amp;quot;&amp;gt;{{Cite web |url=https://hive.apache.org/ |title=Apache Hive |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Engines other than Hive, such as [[Apache Spark]], Impala and [[Trino]], use the same service, which made it the shared table catalog of the Hadoop-era data lake. In an [[open lakehouse]] the Hive Metastore is one of several [[data catalog]] options, next to catalogs that implement the [[Iceberg REST catalog]] API.&lt;br /&gt;
&lt;br /&gt;
== What the Hive Metastore stores ==&lt;br /&gt;
The Hive Metastore keeps metadata, not data. For each table it records the database (namespace), columns and types, partition values, the storage location of each partition and the file format and SerDe used to read it. The Hive project describes it as the central store of metadata for tables and partitions, reached through the metastore service API by clients that include Hive, Impala and Spark.&amp;lt;ref name=&amp;quot;hivehome&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The metadata lives in a relational database accessed through JDO. In Hive 4.2.1 the default connection URL is an embedded Apache Derby database (&amp;lt;code&amp;gt;jdbc:derby:;databaseName=metastore_db;create=true&amp;lt;/code&amp;gt;), which suits tests; production deployments point it at a server database. The default warehouse directory for managed tables is &amp;lt;code&amp;gt;/user/hive/warehouse&amp;lt;/code&amp;gt;, and the Thrift service listens on port 9083 by default.&amp;lt;ref name=&amp;quot;mconf&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/hive/blob/rel/release-4.2.1/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java |title=MetastoreConf.java (rel/release-4.2.1) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How engines use it ==&lt;br /&gt;
Each engine connects to the Hive Metastore with its own client and its own idea of what a table is.&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[Apache Spark]]&amp;#039;&amp;#039;&amp;#039; uses the Hive Metastore as its persistent catalog when Hive support is enabled. Spark 4.3.0 bundles a Hive 2.3.10 client and can talk to metastores of versions 2.0.0 to 2.3.10, 3.0.0 to 3.1.3 and 4.0.0 to 4.1.0, set with &amp;lt;code&amp;gt;spark.sql.hive.metastore.version&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;spark.sql.hive.metastore.jars&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;sparkhive&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/docs/sql-data-sources-hive-tables.md |title=Hive Tables (docs/sql-data-sources-hive-tables.md at v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/spark/blob/v4.3.0/sql/hive/src/main/scala/org/apache/spark/sql/hive/HiveUtils.scala |title=HiveUtils.scala (v4.3.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[Trino]]&amp;#039;&amp;#039;&amp;#039; uses a Thrift metastore (&amp;lt;code&amp;gt;hive.metastore=thrift&amp;lt;/code&amp;gt;, the default) for its Hive, Delta Lake and Hudi connectors, configured with &amp;lt;code&amp;gt;hive.metastore.uri&amp;lt;/code&amp;gt;, and offers &amp;lt;code&amp;gt;hive_metastore&amp;lt;/code&amp;gt; as one Iceberg catalog type.&amp;lt;ref name=&amp;quot;trino&amp;quot;&amp;gt;{{Cite web |url=https://trino.io/docs/current/object-storage/metastores.html |title=Metastores (Trino 484) |publisher=Trino Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[Apache Iceberg]]&amp;#039;&amp;#039;&amp;#039; ships a &amp;lt;code&amp;gt;HiveCatalog&amp;lt;/code&amp;gt; (catalog type &amp;lt;code&amp;gt;hive&amp;lt;/code&amp;gt;). It stores a pointer to the table&amp;#039;s current metadata file in the metastore and uses the metastore to make commits atomic.&amp;lt;ref name=&amp;quot;icebergcat&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/iceberg/blob/apache-iceberg-1.12.0/core/src/main/java/org/apache/iceberg/CatalogUtil.java |title=CatalogUtil.java (apache-iceberg-1.12.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Hive Metastore and the Iceberg REST catalog ==&lt;br /&gt;
The Hive Metastore and REST catalogs are often presented as old and new, but since Hive 4.1.0 the metastore can be both. HIVE-28059 added an Iceberg REST catalog to the metastore in 4.1.0, and HIVE-28658 added a REST catalog client in 4.2.0.&amp;lt;ref name=&amp;quot;hive28059&amp;quot;&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/HIVE-28059 |title=HIVE-28059: Iceberg REST Catalog |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/HIVE-28658 |title=HIVE-28658: Iceberg REST Catalog client |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; In Hive 4.2.1 the endpoint is a servlet that is off by default (&amp;lt;code&amp;gt;metastore.catalog.servlet.port&amp;lt;/code&amp;gt; is -1), serves the path &amp;lt;code&amp;gt;iceberg&amp;lt;/code&amp;gt;, and uses JWT authentication unless &amp;lt;code&amp;gt;metastore.catalog.servlet.auth&amp;lt;/code&amp;gt; selects none, simple or OAuth 2.&amp;lt;ref name=&amp;quot;mconf&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! !! Hive Metastore (Thrift API) !! Iceberg REST catalog&lt;br /&gt;
|-&lt;br /&gt;
! Protocol&lt;br /&gt;
| Thrift RPC, port 9083 by default&amp;lt;ref name=&amp;quot;mconf&amp;quot; /&amp;gt;&lt;br /&gt;
| HTTP and JSON, defined by an OpenAPI specification&amp;lt;ref name=&amp;quot;restspec&amp;quot; /&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Table formats&lt;br /&gt;
| Hive tables in any supported file format; Iceberg tables through a metadata pointer&lt;br /&gt;
| Iceberg tables and views&lt;br /&gt;
|-&lt;br /&gt;
! Commit model&lt;br /&gt;
| Coordinated by each client; Iceberg&amp;#039;s &amp;lt;code&amp;gt;HiveCatalog&amp;lt;/code&amp;gt;, for example, takes a metastore lock around each commit&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/iceberg/blob/apache-iceberg-1.12.0/hive-metastore/src/main/java/org/apache/iceberg/hive/HiveTableOperations.java |title=HiveTableOperations.java (apache-iceberg-1.12.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
| The client sends updates with requirements; the server checks the requirements and applies the commit, or rejects it with a conflict&amp;lt;ref name=&amp;quot;restspec&amp;quot;&amp;gt;{{Cite web |url=https://github.com/apache/iceberg/blob/apache-iceberg-1.12.0/open-api/rest-catalog-open-api.yaml |title=Iceberg REST Catalog API (rest-catalog-open-api.yaml at apache-iceberg-1.12.0) |publisher=Apache Software Foundation |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
! Client coupling&lt;br /&gt;
| Clients must match a supported metastore version (for example Spark&amp;#039;s version list)&amp;lt;ref name=&amp;quot;sparkhive&amp;quot; /&amp;gt;&lt;br /&gt;
| Any client that speaks the REST specification&lt;br /&gt;
|-&lt;br /&gt;
! Example implementations&lt;br /&gt;
| Hive standalone metastore&lt;br /&gt;
| [[Apache Polaris]], [[Unity Catalog]], [[Project Nessie]], the Hive Metastore REST endpoint&amp;lt;ref name=&amp;quot;hive28059&amp;quot; /&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Standalone metastore ==&lt;br /&gt;
The metastore code was moved into its own &amp;lt;code&amp;gt;standalone-metastore&amp;lt;/code&amp;gt; module during Hive 3.0 work, so that it can run without the rest of Hive.&amp;lt;ref&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/HIVE-17733 |title=HIVE-17733: Move RawStore to standalone metastore |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; At the rel/release-4.2.1 tag that module contains separate client, common, server, tools and REST catalog submodules.&amp;lt;ref&amp;gt;{{Cite web |url=https://github.com/apache/hive/tree/rel/release-4.2.1/standalone-metastore |title=standalone-metastore at rel/release-4.2.1 |publisher=GitHub |access-date=2026-11-22}}&amp;lt;/ref&amp;gt; Hive 4.1.0 was the first release to provide the metastore as a standalone component in binary and Docker image form (HIVE-29062).&amp;lt;ref name=&amp;quot;downloads&amp;quot; /&amp;gt;&amp;lt;ref&amp;gt;{{Cite web |url=https://issues.apache.org/jira/browse/HIVE-29062 |title=HIVE-29062: Add standalone module for packaging the Metastore |publisher=Apache Software Foundation JIRA |access-date=2026-11-22}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Status ==&lt;br /&gt;
The Hive Metastore is not deprecated in any Hive release, and Hive 4.2.1, released on 24 August 2026, fixed security issues in it.&amp;lt;ref name=&amp;quot;downloads&amp;quot; /&amp;gt; What has ended is support for old release lines: the Hive community declared the 1.x line end of life in April 2024, the 2.x line in May 2024 and the 3.x line in October 2024.&amp;lt;ref name=&amp;quot;downloads&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This matters for Spark users. The Hive client bundled with Spark 4.3.0 is version 2.3.10, from a line that is end of life; a Spark application that connects to a Hive 4 metastore must load matching client jars through &amp;lt;code&amp;gt;spark.sql.hive.metastore.jars&amp;lt;/code&amp;gt;.&amp;lt;ref name=&amp;quot;sparkhive&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Limitations ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Hive-shaped model.&amp;#039;&amp;#039;&amp;#039; The metastore models tables as directories of files with partitions. Table formats such as Iceberg keep their real metadata in their own files and use the metastore only for a pointer.&amp;lt;ref name=&amp;quot;icebergcat&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Version coupling.&amp;#039;&amp;#039;&amp;#039; Thrift clients must be compatible with the server version, which is why Spark lists the metastore versions it supports.&amp;lt;ref name=&amp;quot;sparkhive&amp;quot; /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Governance.&amp;#039;&amp;#039;&amp;#039; The metastore records metadata; authorization is left to other projects. The Hive project names Apache Ranger for authorization and Apache Atlas for lineage.&amp;lt;ref name=&amp;quot;hivehome&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Apache Hive]]&lt;br /&gt;
* [[Hive on Spark]]&lt;br /&gt;
* [[Data catalog]]&lt;br /&gt;
* [[Iceberg REST catalog]]&lt;br /&gt;
* [[Apache Polaris]]&lt;br /&gt;
* [[Unity Catalog]]&lt;br /&gt;
* [[Project Nessie]]&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Navbox open lakehouse}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Catalogs]]&lt;br /&gt;
[[Category:Concepts]]&lt;br /&gt;
[[Category:Glossary terms]]&lt;/div&gt;</summary>
		<author><name>Open Lakehouse Wiki sync</name></author>
	</entry>
</feed>