Apache Iceberg REST Catalog Protocol Explained

Updated on
9 min read

The Apache Iceberg REST Catalog protocol gives query engines and data tools a common HTTP interface for locating and updating Iceberg tables. Data engineers and platform teams can use it to connect different engines to a catalog service without requiring each client to integrate with every catalog vendor’s private API. This explainer follows catalog discovery, table reads, commits, and storage access, and shows how to verify a client connection.

Why the REST Catalog Protocol Is Being Talked About

Iceberg’s open table format allows engines to share tables, but a table format alone does not provide a network service for finding those tables or coordinating changes. Historically, each catalog implementation could require its own client integration, which made it harder to add a new engine or change the service that manages a lakehouse.

The REST Catalog protocol addresses that integration boundary. The Apache Iceberg project defines a common API that clients can use across services that implement it. A catalog operator can manage table metadata and policy behind the service, while compatible engines use standard HTTP requests to access catalog operations. The protocol is part of Iceberg’s interoperability story, not a replacement for the table format or a new format for the data files.

What Is the Apache Iceberg REST Catalog Protocol?

An Iceberg REST catalog is a service that implements Iceberg’s REST Catalog API specification. The API uses HTTP requests and JSON messages to look up namespaces and tables, load table metadata, and request changes. The official REST Catalog documentation describes how engines connect; the REST protocol overview explains discovery, commits, and optional features.

The protocol is an API contract, not one specific server product. Its API definition is maintained in the Apache Iceberg OpenAPI description. OpenAPI describes HTTP operations in a machine-readable form, while IETF RFC 9110 defines the HTTP semantics the API uses. A service can implement the Iceberg interface and still differ from another service in deployment, authorization, supported optional endpoints, and underlying storage.

An important boundary is that the catalog API usually manages metadata and permissions; it does not proxy every data-file read. Once a client has loaded a table, the engine or library commonly reads files directly from object storage. The REST service can grant scoped storage credentials or provide remote request signing when direct credentials should not be given to the client.

The Problem the Protocol Solves

Without a shared catalog interface, a Spark, Flink, or Python client may need a different connector and authentication setup for each catalog backend. That creates operational friction: switching providers can mean changing application code, and supporting a new engine depends on the provider building and maintaining another integration.

A protocol standardizes the exchange without requiring every service to share an implementation. The service remains responsible for catalog state, access decisions, and the commit operation. Clients can reuse an implementation of the protocol, while operators can centralize policy and expose only the operations their deployment supports.

This does not make all Iceberg services interchangeable in every respect. Clients and servers must agree on table-format features, authentication, and optional API capabilities. Storage permissions, latency, service availability, and provider-specific configuration remain deployment concerns.

How the REST Catalog Works

The configured catalog URI is the base address for API calls. The client begins with GET /v1/config, optionally identifying a warehouse. The response can provide default properties, required overrides, and a list of supported endpoints. It may also provide a path prefix used for later requests. If endpoint capabilities are advertised, the client can avoid attempting unsupported optional operations.

After initialization, a client can list namespaces, list tables, or load a table. The catalog response contains the table metadata and configuration needed by the client. The client then follows the Iceberg metadata references to plan a scan, and typically reads the data files directly from the storage system. This keeps the catalog API from becoming a data-transfer bottleneck.

Writes use a different path. The client prepares the desired table changes and sends them to the catalog as requirements and updates. A requirement states an assumption that must still hold, such as the table metadata or snapshot being the one the writer read. The server checks those requirements against current state and applies the update if it is valid. If another writer has changed the table in a conflicting way, the server rejects the commit so the client can refresh and retry or report a conflict. The service owns this check; clients do not independently swap a metadata pointer over the REST API.

Catalog approach Client connection Commit coordination Typical consideration
Iceberg REST HTTP API shared by compatible clients Catalog service validates submitted requirements and updates Useful across engines and languages when a service implements the protocol
Hive Metastore catalog Hive Metastore client and its configured transport Catalog implementation coordinates table metadata updates Fits deployments already centered on a Hive metastore
Hadoop catalog Shared warehouse directory and filesystem operations Uses the configured filesystem and commit implementation Simple directory-backed setup, but requires compatible shared filesystem access
Cloud or vendor catalog Provider-specific endpoint, SDK, or connector Provider service manages catalog operations Can integrate closely with a platform, but clients may need provider-specific configuration

These approaches differ in where the service boundary sits, not in what an Iceberg table’s snapshots or data files mean. Choosing REST is most useful when a standardized service interface reduces integration work; it does not automatically make the catalog faster or remove the need to check engine support.

Key Components and Concepts

Catalog URI and warehouse. The URI locates the service, sometimes including a reverse-proxy path prefix. A warehouse is a server-recognized location or identifier for tables; it is not necessarily a local folder. The client and service configuration determine which values are required.

Configuration and endpoint discovery. The initial configuration response can supply defaults, override client values, and advertise supported endpoints. Optional capabilities such as views, metrics reporting, or server-side scan planning should not be assumed unless the service exposes them.

Namespaces and table identifiers. Namespaces group tables and may be nested. API paths encode those identifiers according to the protocol’s namespace rules; clients should use their catalog library rather than constructing paths manually.

Requirements, updates, and conflicts. Requirements describe the state the writer expects, while updates describe the requested metadata changes. Server-side validation is the concurrency boundary. A conflict response is not a reason to blindly replay a write: clients must refresh and follow the implementation’s retry behavior.

Authentication and storage delegation. Catalog requests may use bearer tokens or an OAuth flow configured for the service. Authentication grants access to the API but does not necessarily give the client permission to read the underlying object store. The server may separately vend short-lived storage credentials or sign requests on a client’s behalf. Treat those capabilities as optional and follow the provider’s security configuration.

Real-World Uses

A shared REST catalog can let a Spark ingestion job publish a table that a Trino cluster and a PyIceberg tool can subsequently discover, subject to their feature compatibility. A platform team can expose one catalog endpoint to multiple compute environments while keeping table policy and metadata operations within a managed service.

It is also useful where workers should not retain long-lived object-store credentials. A catalog can provide scoped, temporary credentials or remote signing for table access, limiting what a client can read or write. The exact model depends on the service and its storage integration; the REST interface alone does not enforce an organization’s complete authorization policy.

For small deployments, a direct or embedded catalog may be simpler. A network protocol adds a service to operate, secure, monitor, and make highly available. The choice should reflect how many clients need to share tables and how independently their compute environments are deployed.

Getting Started: Connect and Verify

The PyIceberg API documentation shows how to configure and load a REST catalog. Install the client in a virtual environment:

python -m venv .venv
source .venv/bin/activate
python -m pip install "pyiceberg[pyarrow]"

In Windows PowerShell, activate with .\.venv\Scripts\Activate.ps1. Create a .pyiceberg.yaml file in the current directory or your home directory, using the URI and warehouse identifier supplied by your catalog operator:

catalog:
  prod:
    uri: https://catalog.example.com/api/catalog
    warehouse: analytics

For a catalog that requires authentication, configure credentials using the method supported by that service and PyIceberg. Do not commit credentials into the YAML file or place production secrets directly in a script. Then check that the client can initialize the catalog and list namespaces:

from pyiceberg.catalog import load_catalog

catalog = load_catalog(name="prod")
print(catalog.list_namespaces())

Run the script with python check_catalog.py. A successful response confirms the configured client can reach the catalog and perform that operation; it does not verify that it can read every table’s data files. For an HTTP-level check from a shell with an authorized bearer token, request the configuration endpoint:

curl --fail-with-body --silent --show-error \
  -H "Authorization: Bearer ${ICEBERG_TOKEN}" \
  "${ICEBERG_REST_URI%/}/v1/config"

Use the authentication scheme required by your provider; not every catalog uses the same token setup. A connection error usually points to the URI, DNS, TLS, firewall, or proxy. A 401 indicates that authentication is missing or invalid, while a 403 indicates that the caller is not allowed to perform the operation. A 404 may mean the warehouse or API path is wrong. If namespace listing works but table reads fail, verify the client can also reach the table’s storage location and has the delegated or direct storage access it needs.

Common Misconceptions

“REST catalog means the data travels through HTTP.” The catalog API usually transfers identifiers, configuration, and metadata. Table files are often read directly from object storage, although services can offer credential vending or remote signing.

“Every REST catalog supports every Iceberg feature.” The protocol supports endpoint discovery and optional capabilities. Confirm the specific server, client, and table-format version support the features you need.

“A successful catalog request proves storage access is configured.” Catalog authorization and object-store permissions are separate boundaries. Test table operations and data-file access with the actual client identity.

Changelog and Last Updated

  • Changelog: Initial publication.
  • Last updated: Reviewed against the Apache Iceberg REST Catalog documentation, API definition, and PyIceberg API guide.
TBO Editorial

About the Author

TBO Editorial writes about the latest updates about products and services related to Technology, Business, Finance & Lifestyle. Do get in touch if you want to share any useful article with our community.