Data Engineering · 5 min read

Databricks Unity Catalog Iceberg tables run on plain Spark on GCP

Databricks shows Unity Catalog Iceberg tables reading and writing from plain Spark on Dataproc via the Iceberg REST API, with no Databricks libraries — plus a Hive path with sharp limits.

By Priya Raman940 words

Key takeaways

  1. Unity Catalog Iceberg tables on GCP are standard Iceberg metadata and Parquet in the customer's own GCS bucket.
  2. The demo uses Dataproc image 2.3 with Spark 3.5 on Scala 2.12 and Iceberg runtime 1.10.0, latest stable as of November 2026.
  3. REST-path writes from Dataproc are visible in Databricks immediately; Hive registrations go stale and can fork table history.
  4. UNREGISTER is in Private Preview as of November 2026; UNREGISTER-to-REGISTER is the safe way to move a table between catalogs.
  5. External clients cannot run table maintenance (snapshot expiry, orphan removal) and on Iceberg v3 must use copy-on-write or deletion vectors.
Databricks Unity Catalog Iceberg tables run on plain Spark on GCP
kaboompics / pixabay

Databricks has shown that Unity Catalog-managed Iceberg tables need no Databricks runtime to read or write: plain open source Apache Spark on a Google Cloud Dataproc cluster connects through the standard Iceberg REST API using nothing but stock Maven artifacts. The walkthrough, published by Databricks engineers Harika Mariyala and Saurav Bhowmick, runs two paths end to end — a live REST connection and a Hive metastore registration — with runnable scripts in a companion GitHub repository.

What exactly is being opened up?

Unity Catalog-managed Iceberg tables are ordinary Apache Iceberg metadata (metadata.json, manifest lists, manifests) plus Parquet data files, stored in a GCS bucket inside the customer's own Google Cloud project. Nothing in those files requires Databricks to read them. Unity Catalog also implements the open Apache Iceberg REST Catalog specification at /api/2.1/unity-catalog/iceberg-rest, so any compliant client — Spark, Trino, Flink, PyIceberg, Snowflake, Dremio — connects with the same type=rest, uri, warehouse and token settings.

The practical payoff: one copy of data, two catalogs, and a config the authors say contains no Databricks jar and no Databricks-specific property. Pointing the same job at a different Iceberg REST catalog is a one-line change of uri and warehouse.

What does the setup actually require?

Three one-time prerequisites, performed by a metastore admin or the table owner:

  • EXTERNAL USE SCHEMA privilege on the schema, which permits Unity Catalog to vend storage credentials to an external engine.
  • MODIFY and CREATE TABLE on the schema, if the Dataproc side will write.
  • A single-node Dataproc cluster on image 2.3, which ships Spark 3.5 on Scala 2.12. Those versions dictate the Iceberg runtime artifact: iceberg-spark-runtime-3.5_2.12 plus iceberg-gcp-bundle, both at version 1.10.0, the latest stable release as of November 2026.

Two operational notes worth flagging. The cluster has no external IP, so it needs an egress path such as Cloud NAT to reach Maven Central and the Databricks workspace URL; a one-hour idle timeout tears the cluster down automatically. The GCP bundle matters more than it looks — without it, Spark reaches the catalog but fails to open GCS files, and the error surfaces as class-not-found rather than a permission failure, which misleads triage.

There are no GCS credentials on the Spark side. Unity Catalog vends short-lived, table-scoped credentials per table load, provided the identity holds EXTERNAL USE SCHEMA.

Do writes from Dataproc actually show up in Databricks?

Yes, immediately. A table created and populated from Dataproc appears as an ordinary Unity Catalog managed Iceberg table: visible in Catalog Explorer, queryable from a SQL warehouse, with Unity Catalog privileges, lineage and audit applied. Nothing marks it as externally created. The commit went through the REST API, so Unity Catalog's pointer to the current metadata.json moved, and both engines agree on table state.

What about the Hive registration path?

The second path registers the table's existing metadata.json into the Dataproc Hive metastore using Iceberg's standard register_table procedure — no credential vending, so the Dataproc service account needs its own read access to the bucket. It proves portability: the same bytes in GCS become visible to a second catalog that has never heard of Databricks, and the row count matches.

But the authors are blunt about the limits. A registration points at one specific metadata.json, while every Databricks write (INSERT, MERGE, UPDATE, DELETE, OPTIMIZE) commits a new metadata file. The Hive entry keeps pointing at the old one, and nothing resyncs automatically. Refreshing means fetching the new metadata location from the REST loadTable response and re-registering — best run as the last task of the Databricks load job or on a schedule.

Writing through the Hive registration is worse than useless. An INSERT succeeds on the Hive side, but Unity Catalog's pointer never moves, so Databricks keeps reading the previous version. The result is what the post calls a split-brain table: two catalogs holding diverging histories of the same files. Apache Iceberg's register_table documentation warns that registering the same metadata.json in more than one catalog can cause missing updates, data loss and table corruption. For a real catalog move, the prescribed sequence is UNREGISTER then REGISTER — and UNREGISTER is in Private Preview as of November 2026. Never run DROP TABLE ... PURGE on a registered table; it would delete files that belong to the Databricks table.

What should a data team take from this?

The rules of engagement are simple. Use the REST path for anything that writes, because every commit moves the shared pointer and Unity Catalog governance applies on every call. Treat a second-catalog registration as a portable, read-only point-in-time view that goes stale without warning. Match jar versions to the Dataproc image, since classpath mismatches masquerade as connectivity errors. For production, use OAuth client credentials (rest.auth.type=oauth2) rather than a personal access token — PATs are legacy for scheduled work.

Two external-write limitations remain on the REST path: external clients cannot run table maintenance such as snapshot expiry or orphan file removal, and on Iceberg v3 tables, row-level changes from external engines must use copy-on-write or deletion vectors.

The open question for buyers evaluating Databricks is now narrower: the files are open, the catalog API is open, and the credential vending is standard. What stays closed is maintenance operations from outside. That is a vendor-verified demonstration, so treat the portability claims as demonstrated rather than independently audited — but the mechanism, and the failure modes, are documented in enough detail to test yourself.

community.databricks.com (Original)

Price tags

Share this article:

More from Priya Raman

Priya Raman

Show full bio

Correspondent covering regulation, policy and their impact on Analytics Digest is a professional daily at Analytics Digest.

59 articles

Read also

« Previous articleNext article »