Skip to content
Cloudflare Docs

Manage catalogs

Learn how to:

  • Enable and disable R2 Data Catalog on your buckets.
  • Authenticate Iceberg engines using API tokens.

Enable R2 Data Catalog on a bucket

Enabling the catalog on a bucket turns on the REST catalog interface and provides a Catalog URI and Warehouse name required by Iceberg clients. Once enabled, you can create and manage Iceberg tables in that bucket.

  1. In the Cloudflare dashboard, go to the R2 object storage page.

    Go to Overview
  2. Select the bucket you want to enable as a data catalog.

  3. Switch to the Settings tab, scroll down to R2 Data Catalog, and select Enable.

  4. Once enabled, note the Catalog URI and Warehouse name.

Disable R2 Data Catalog on a bucket

When you disable the catalog on a bucket, it immediately stops serving requests from the catalog interface. Any Iceberg table references stored in that catalog become inaccessible until you re-enable it.

  1. In the Cloudflare dashboard, go to the R2 object storage page.

    Go to Overview
  2. Select the bucket where you want to disable the data catalog.

  3. Switch to the Settings tab, scroll down to R2 Data Catalog, and select Disable.

Enable compaction

Compaction improves query performance by combining the many small files created during data ingestion into fewer, larger files according to the set target file size. For more information about compaction and why it's valuable, refer to About compaction.

  1. In the Cloudflare dashboard, go to the R2 object storage page.

    Go to Overview
  2. Select the bucket you want to enable compaction on.

  3. Switch to the Settings tab, scroll down to R2 Data Catalog, and click on the Edit icon next to the compaction card.

  4. Enable compaction and optionally set a target file size. The default is 128 MB.

  5. (Optional) Provide a Cloudflare API token for compaction to access and rewrite files in your bucket.

  6. Select Save.