Skip to main content
After preparing your external catalog, configure the compaction service to connect to it. Catalog configuration is added to the compactionScheduler.config.custom section of the PulsarBroker YAML.

Multi-Catalog Architecture

StreamNative supports configuring multiple catalogs simultaneously. Different namespaces or topics can route data to different catalogs.

Configuration Pattern

  • Iceberg catalogs: iceberg.catalog.<catalog-name>.<property>
  • Delta catalogs: delta.catalog.<catalog-name>.<property>

Default Catalog

Set the default catalog used when no topic or namespace override is specified:

Catalog Resolution Priority

The catalog used for a topic is resolved in this order:
See Enable Lakehouse Integration for how to assign catalogs at namespace and topic level.

Iceberg Catalogs

Unity Catalog (Managed Iceberg Table)

Snowflake Horizon Catalog

Snowflake Open Catalog (Polaris)

AWS S3Table

Important: The Ursa cluster must run in the same region as the S3Table bucket.

Google BigLake


Delta Lake Catalogs

Unity Catalog (Delta)

Authentication Options

Token-based (recommended):
OAuth2 (machine-to-machine):

BYOL (Bring Your Own Lakehouse)

Enable managed commit support for Unity Catalog:

Without Catalog (Direct Bucket)

If you do not need an external catalog service, data can be written directly to the object storage bucket.
Required permissions: When no external catalog is used, the compaction-scheduler pod’s IAM role (AWS), service account (GCP), or workload identity (Azure) must have read, write, create, and list permissions on the target bucket. Without an external catalog, the compaction service interacts with object storage directly to create namespaces, write metadata, list existing files, and read prior snapshots. Examples of the required permissions per cloud:

Iceberg (Hadoop Catalog)

The default Hadoop catalog writes Iceberg metadata and data files directly to the configured storage path. No external catalog service is required.

Table maintenance

Snowflake Open Catalog (Polaris) and the Hadoop catalog do not run table maintenance on your behalf. Streaming writes from the StreamNative Ursa compaction service produce many small Parquet files and accumulate snapshot history over time, which degrades query performance and inflates storage costs. You are responsible for scheduling and running maintenance against every Iceberg table written by Ursa. Run the maintenance operations below on a regular schedule. They are provided as Apache Iceberg Spark stored procedures and can be triggered from any Spark cluster (Databricks, AWS EMR, AWS Glue, GCP Dataproc, or self-managed Spark) that has the Iceberg Spark runtime, catalog credentials, and IAM access to the warehouse bucket. Maintenance operations Example: run maintenance from Spark The following examples assume the catalog has been registered in Spark as <catalog>. Replace <catalog>, <namespace>, and <table> with your values.
Operational guidance
  • Credentials. The principal that runs maintenance must have catalog privileges to read and write the target table (for example, the same TABLE_READ_DATA, TABLE_WRITE_DATA, TABLE_READ_PROPERTIES, and TABLE_WRITE_PROPERTIES privileges configured for the Ursa compaction service) and IAM access to the warehouse bucket so it can read and rewrite the underlying data files. With the Hadoop catalog there is no catalog service to authenticate against — only the bucket IAM access is required.
  • Concurrency. Iceberg uses optimistic concurrency control. If maintenance commits race with the Ursa compaction writer, one of them retries. Schedule heavy operations (rewrite_data_files, rewrite_manifests) during low-write windows when possible.
  • Retention vs. time travel. expire_snapshots and remove_orphan_files permanently delete files. Choose a retention window that exceeds the longest expected read query and your time-travel SLA.
  • Schedule the workload. Most teams orchestrate these procedures from Databricks Jobs, AWS EMR steps, Airflow, Dagster, or a Kubernetes CronJob. Pick a scheduler that fits your existing operational stack.
  • Reference. See the Iceberg Spark procedures documentation for the full parameter list, including options for partial rewrites (where), file-size targets, and merge-on-read delete file compaction.

Delta (No Unity Catalog)

Delta tables are written directly to the configured storage path without Unity Catalog integration.

Table maintenance

When Delta tables are written directly to object storage without a managed catalog, no service runs maintenance on your behalf. Streaming writes from the StreamNative Ursa compaction service produce many small Parquet files and accumulate Delta transaction-log history over time, which degrades query performance and inflates storage costs. You are responsible for scheduling and running maintenance against every Delta table written by Ursa. Run the maintenance operations below on a regular schedule. They can be executed from any Spark cluster (Databricks, AWS EMR, AWS Glue, GCP Dataproc, or self-managed Spark) that has the delta-spark runtime and IAM access to the warehouse bucket. For background and tuning recommendations, see the Databricks Delta Lake best practices guide. Maintenance operations Example: run maintenance from Spark Replace <path> with the table location (s3://..., gs://..., or abfss://...).
Operational guidance
  • Credentials. The principal that runs maintenance must have IAM read, write, list, and delete permissions on the warehouse bucket so it can rewrite and remove data files.
  • VACUUM retention. Do not reduce the retention window below 7 days without explicitly disabling the safety check (spark.databricks.delta.retentionDurationCheck.enabled = false). Shorter windows risk breaking concurrent readers and time-travel queries.
  • Concurrency. Delta uses optimistic concurrency control. Bin-packing OPTIMIZE runs do not generally conflict with append-only writes from Ursa, but OPTIMIZE … ZORDER BY rewrites larger portions of the table and is best scheduled in lower-write windows.
  • Schedule the workload. Most teams orchestrate maintenance from Databricks Jobs, AWS EMR steps, Airflow, Dagster, or a Kubernetes CronJob. Pick a scheduler that fits your existing operational stack.
  • Reference. See the Databricks Delta best practices and the Delta Lake utility commands for full syntax, retention options, and tuning guidance.

Multi-Catalog Example

Configure two catalogs (one Polaris, one S3Table) and set a default:
Then assign catalogs per namespace or topic:

Limitations

  • A namespace or topic can reference only one catalog at a time
  • You can assign different catalogs to different topics or namespaces
  • You cannot assign multiple catalogs to a single topic or namespace

Next Steps