Unity Catalog versus Iceberg REST Catalog versus Hive Metastore?
Summary
- They aren't three versions of the same thing. Hive Metastore is a metadata service from Apache Hive, the Iceberg REST Catalog is an OpenAPI specification, and Unity Catalog is a governed catalog that implements open APIs, including that specification.
- Hive Metastore stores the definitions of databases, tables and functions in a relational database and serves them to engines over a Thrift interface.
- The Iceberg REST Catalog spec gives every Iceberg catalog one common API, so an engine needs a single client implementation to work with any catalog that implements it.
- Unity Catalog governs tables, views, volumes, functions and models in one three-level namespace. Its open-source README says it is compatible with both the Hive metastore API and the Iceberg REST catalog API.
- On Databricks, the legacy Hive metastore shows up as the hive_metastore catalog, and Databricks recommends migrating those tables and workloads to Unity Catalog.
Unity Catalog versus Iceberg REST Catalog versus Hive Metastore?
Choose by layer, not by brand. The Iceberg REST Catalog is a protocol, so the real choice is which catalog implements it for you. If you only need engines to find and commit Iceberg tables, any catalog that implements the REST spec will do. If you also need access control and governance over files, functions and models, you need a catalog like Unity Catalog, which speaks the Iceberg REST protocol and adds that layer. Hive Metastore is where existing Hive-era workloads keep their table definitions; on Databricks the documented path is to federate it and migrate off it, not to build new work on it.
What each one is
Hive Metastore (HMS). Per the Apache Hive docs, "The definition of Hive objects such as databases, tables, and functions are stored in the Metastore." It persists them to a relational database through DataNucleus, an object-relational mapping layer, and runs embedded in a process or as a service. Since Hive 3.0 it can run without the rest of Hive installed. Depending on configuration, statistics and authorization records may also be stored there. Engines talk to it over Thrift.
Iceberg REST Catalog (IRC). This is a specification, not a server: "Iceberg defines a REST-based Catalog API for managing table metadata and performing catalog operations." Pluggable catalogs had to be implemented in every language, so the Iceberg community created "a common API (using the OpenAPI spec) for interacting with any Iceberg catalog", which the docs call "analogous to Hive's thrift protocol for HMS". The spec uses change-based commits, so the server can deconflict and retry. The catalog service writes root metadata, and the protocol supports credential vending or remote signing.
Unity Catalog. The open-source project describes itself as "The open catalog for all your Data and AI assets in the open lakehouse." It organizes catalogs, schemas and assets in a three-level namespace and governs tables, views, metric views, volumes, functions and registered models. Engines connect through the Unity Catalog REST API, the Delta API for catalog-managed Delta tables, or the Iceberg REST API. The OSS server is Apache 2.0 licensed and hosted by the LF AI & Data Foundation.
Side-by-side
| Aspect | Hive Metastore | Iceberg REST Catalog | Unity Catalog |
|---|---|---|---|
| What it is | A metadata service from Apache Hive | An OpenAPI specification for Iceberg catalogs | An open-source catalog server, plus a managed Databricks service |
| Interface | Thrift | REST | Unity Catalog REST API, Delta API, Iceberg REST API |
| What it tracks | Databases, tables, functions | Namespaces and Iceberg table metadata | Catalogs, schemas, tables, views, volumes, functions, models |
| Table formats | Hive table definitions | Iceberg | Delta Lake and Iceberg |
| Backing store | A relational database through DataNucleus | Up to the server that implements the spec | A metadata database (the OSS docs cover PostgreSQL) |
| Storage credentials | Not covered in the Metastore admin docs | Credential vending or remote signing | Credential vending of short-lived, scoped credentials |
| Access control | Authorization records, depending on configuration | Up to the implementing server | Privileges such as USE_CATALOG, SELECT and MODIFY |
How Databricks approaches catalogs
On Databricks, Unity Catalog is the governance layer for data and AI. The docs list access control (privileges, attribute-based policies, row and column filters, workspace bindings), lineage, auditing, data classification, data quality monitoring and data sharing over the OpenSharing protocol.
Databricks treats the Hive metastore as legacy. It appears as a top-level catalog called hive_metastore, and the docs warn that "Tables in the Hive metastore do not benefit from the full set of security and governance features" of Unity Catalog. Databricks recommends migrating those tables and their workloads to Unity Catalog. Hive metastore federation "creates a foreign catalog in Unity Catalog that mirrors the Hive metastore", which lets you govern HMS tables while you migrate.
Unity Catalog on Databricks implements the Iceberg REST Catalog API at /api/2.1/unity-catalog/iceberg-rest. Managed Iceberg tables are readable and writable through it; foreign Iceberg tables and Delta tables with Iceberg reads (UniForm) are read-only. External data access must be enabled on the metastore, and the principal needs EXTERNAL USE SCHEMA on the schema. A PyIceberg client needs only three settings in its documented YAML configuration:
catalog:
unity_catalog:
uri: https://<workspace-url>/api/2.1/unity-catalog/iceberg-rest
warehouse: <uc-catalog-name>
token: <token>
Unity Catalog also supports REGISTER and UNREGISTER from the Iceberg REST catalog spec, and Databricks contributed UNREGISTER to the spec. That means a table can leave Unity Catalog for another Iceberg REST catalog without copying data files.
FAQs
Is the Iceberg REST Catalog a replacement for Hive Metastore?
For Iceberg tables, it fills the same role: a shared place where engines find tables and commit changes. But it's an API, so you still run or use a catalog server behind it.
Can Unity Catalog serve Hive Metastore clients?
The open-source Unity Catalog README says the project "is also compatible with Apache Hive's metastore API and Apache Iceberg's REST catalog API." On Databricks, Hive metastore federation brings an existing HMS into Unity Catalog as a foreign catalog.
Should new projects start on Hive Metastore?
Databricks' guidance is the reverse: migrate Hive metastore tables to Unity Catalog. For an open stack, a catalog that implements the Iceberg REST spec gives every Iceberg engine one interface to code against.
The information provided herein is for general informational purposes only and may not reflect the most current product capabilities or configurations.