Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Iceberg

Connect an Iceberg REST catalog

Connect Artie to an Apache Iceberg REST catalog, such as Databricks Unity Catalog, and choose the Iceberg table format for new tables.

Set up Databricks Unity Catalog

Skip this section for any other REST catalog.

  1. Enable external data access.
  2. Grant the service principal the privileges in the list after these steps.
  3. Copy the REST catalog URI and the catalog name for the REST catalog URI and Warehouse (catalog name) fields in Artie.

The service principal needs these privileges:

  • EXTERNAL USE SCHEMA, EXTERNAL USE LOCATION
  • USE CATALOG, USE SCHEMA
  • SELECT
  • MANAGE, CREATE SCHEMA, CREATE TABLE, MODIFY

Grant each privilege to the service principal by its application ID. For example, run this in Databricks:

SQL
GRANT EXTERNAL USE SCHEMA ON SCHEMA catalog_name.schema_name TO `6f0c8a4e-2b1d-4c7a-9e3f-5d8b1a2c4e6f`;

The REST catalog URI for Unity Catalog has this format:

Text
https://DATABRICKS_HOST/api/2.1/unity-catalog/iceberg-rest

DATABRICKS_HOST is your workspace hostname, for example acme.cloud.databricks.com.

Authentication

Artie signs in to the catalog with a bearer token or with OAuth2 client credentials.

A bearer token is a personal access token, so Artie acts as the user who created it. Grant that user the privileges listed in Set up Databricks Unity Catalog, or use OAuth2 client credentials with the service principal.

To generate a personal access token in your Databricks workspace:

  1. Select your username in the top bar, then select Settings.
  2. Select Developer.
  3. Next to Access tokens, select Manage, then Generate new token.
  4. Enter a name for the token and set its lifetime in days. Record the expiry date.
  5. Select Generate, then copy the token.

The screenshot shows where each option sits in the workspace:

Databricks user settings with Developer, Access tokens and Generate new token marked

In Artie, set Authentication method to Bearer token and paste the token into Bearer token.

Add the REST catalog in Artie

These steps use the pipeline setup flow. For Iceberg, the flow has no Network access or Prepare destination step.

  1. On Choose your destination, select Iceberg, then select Continue.
  2. On Connect Iceberg, set Catalog type to REST catalog (Databricks Unity Catalog, etc.).
  3. Enter the connection fields from the table after these steps.
  4. If Namespace shows two options, select One namespace or Multiple namespaces.
  5. For one namespace, select the namespace Artie writes to in Namespace name.
  6. Select Verify destination. The step shows Destination verified.

The connection fields appear in this order:

FieldRequiredWhat to enter
REST catalog URIYesThe endpoint URL of your catalog’s REST API.
Bearer tokenYes, with Bearer token authenticationThe token Artie sends to the catalog.
Client credentialsYes, with Client credentials (OAuth2) authenticationThe client ID and secret, as client_id:client_secret.
Token endpoint (authURI)Yes, with Client credentials (OAuth2) authenticationThe OAuth2 token endpoint URL.
OAuth2 scopeNoThe OAuth2 scope. Empty means catalog.
Warehouse (catalog name)YesThe name of your Iceberg catalog.
PrefixNoThe catalog prefix, if your catalog uses prefixes for namespacing.

Switching Authentication method clears the fields of the other method.

Namespaces

Artie writes each table into an Iceberg namespace. The Namespace choice appears when your source has schemas.

  • One namespace writes every table to the namespace in Namespace name. For source tables outside the default schema, Artie prepends the source schema name to the table name.
  • Multiple namespaces writes each table to a namespace named after its source schema. Namespace name prefix (optional) adds a prefix to each namespace name.

Dynamically create namespaces is on for pipelines created in the setup flow. With it on, Artie creates any namespace that doesn’t exist.

To change the namespace on a running pipeline, pause the pipeline first. Then move its tables to the new namespace in your destination.

Verify the connection

Verify destination needs at least one table. With no tables chosen, the button reads Test connection. A passing test shows this message:

Text
Connection works. Choose tables to finish verifying the destination.

Select Choose tables, pick your tables, then return to Connect Iceberg and select Verify destination.

Some sources, such as S3 and DynamoDB, show a different notice. It names the step to finish before verifying.

Table format

The Table format setting picks the Iceberg version for new tables. It appears on the Connect Iceberg step and on the pipeline’s Destination: Iceberg tab.

It defaults to Iceberg v2, which nearly every engine can read, including Athena, StarRocks, and older Spark and Trino versions. Tables that already have data keep their version. A pipeline on v2 can move to v3 later, once it meets the Iceberg v3 early access requirements. S3 Tables pipelines stay on Iceberg v2.

Iceberg v3 stores deletes as deletion vectors, so updates and deletes write less. Pick it only when every engine that queries these tables supports v3. A table created as v3 can’t go back to v2.

Iceberg v3 early access

Iceberg v3 tables are in early access. They need Artie’s native Iceberg engine, which Artie turns on per pipeline. Contact us to enable it.

Without the native engine, Iceberg v3 can’t be selected. A pipeline saved with v3 and no native engine stops the deploy with this error:

Text
v3 tables need the native Iceberg engine, since Spark can't read them. Set the table format to v2

To deploy, set Table format to Iceberg v2.

Was this page helpful?