Skip to content
trendoviz

AI for Business · Industry

Databricks Enables Open Source Spark on GCP to Access Unity

Apache Spark running on Google Cloud Dataproc can now read and write Unity Catalog Iceberg tables using only the Iceberg REST API, with no Databricks libraries required.

Published
  • 2 min read
  • 1 source
  • Stated by the source itself

Summary

Databricks has demonstrated that open source Apache Spark on Google Cloud Dataproc can read and write Unity Catalog Iceberg tables without Databricks libraries. This is achieved via the Iceberg REST API and by registering table metadata in a Hive metastore, demonstrating data portability across catalogs.

Key facts

  • Unity Catalog Iceberg tables are stored as standard Apache Iceberg metadata and Parquet files in a user's own Google Cloud Storage (GCS) bucket.
  • Open source Spark on GCP Dataproc can read and write these tables through the Iceberg REST API without Databricks libraries.
  • The same table files can be registered into a Hive metastore for portable, read-only access.
  • The Hive registration uses Iceberg's standard register_table procedure.

Details

Unity Catalog implements the open Apache Iceberg REST Catalog specification, allowing Spark on Dataproc to connect and operate on tables exactly as it would with any other REST catalog. The blog provides a walkthrough showing both methods: reading and writing via the REST API, and registering table metadata in a Hive metastore. The Hive registration path demonstrates that the data files are portable to any Iceberg-capable catalog. The blog notes a specific behavior for the Hive path: the metadata file is static after registration, so a refresh is needed after each Databricks load to see new data. The complete, runnable scripts for every step are available in a linked GitHub repository.

Why it matters

This capability addresses a potential lock-in by allowing teams to use Unity Catalog for data governance while maintaining the flexibility to access and query that data using open-source Spark on any cloud provider. For developers, this means they can build Lakehouse architectures with fewer dependencies on proprietary tools. The Hive registration method offers a path for legacy systems or read-only consumers to access the data.

What's next

The blog provides runnable scripts for every step in the linked GitHub repository. It advises teams to keep each table owned by a single catalog in production and to use the Hive registration path only for read-only portability.

Sources

Original source: Databricks blog

Industry ·

EU fines Meta up to 6% of turnover over scam ads

The European Commission warns Meta of a massive fine for failing to protect users from billions of scam ad impressions, including AI-generated content impersonating public figures.

1 source

Found an error? Report it.