Skip to main content

Iceberg REST Catalog

Dremio connects to any catalog supporting the Iceberg REST Catalog specification. See Supported Configurations below for ready-to-use configurations for many popular catalogs, including:

In addition, Dremio provides specific connectors for:

Configure an Iceberg REST Catalog Source

To add an Iceberg REST Catalog source:

  1. On the Datasets page, to the right of Sources in the left panel, click This is the Add Source icon..
  2. In the Add Data Source dialog, under Lakehouse Catalogs, select Iceberg REST Catalog Source.

General

To configure the source connection:

  1. For Name, enter a name for the source. The name you enter must be unique in the organization. Also, consider a name that is easy for users to reference. This name cannot be edited once the source is created. The name cannot exceed 255 characters and must contain only the following characters: 0-9, A-Z, a-z, underscore (_), or hyphen (-).
  2. For Endpoint URI, specify the catalog service URI.
  3. By default, Use vended credentials is turned on. This allows Dremio to connect to the catalog and receive temporary credentials for the underlying storage location. When this setting is enabled, you do not need to add storage authentication in Advanced Options. If you experience errors using vended credentials, turn the setting off and provide credentials via Advanced Options to establish a connection.
  4. (Optional) For Allowed Namespaces, add each namespace and check the option if you want to include their entire subtrees. Tables are organized into namespaces, which can be at the top level or nested within one another. Namespace names cannot contain periods or spaces.

Advanced Options

Storage Authentication

If you disabled vended credentials in the General tab, you must manually provide storage authentication.

Dremio supports Amazon S3 and Azure Storage as object storage services. For acceptable storage authentication configurations, see the following catalog properties and credentials for each service option.

  • fs.s3a.aws.credentials.provider (property)

    • Value: org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider
    • Description: Required field for an Iceberg REST Catalog source
  • fs.s3a.access.key (credential)

    • Value: <your_access_key>
    • Description: AWS access key ID used by the S3A file system. Omit for IAM role-based or provider-based authentication.
  • fs.s3a.secret.key (credential)

    • Value: <your_secret_key>
    • Description: AWS secret access key used by the S3A file system. Omit for IAM role-based or provider-based authentication.

Cache Options

  • Enable local caching when possible: Selected by default. Along with asynchronous access for cloud caching, local caching can improve query performance.
  • Max percent of total available cache space to use when possible: Specifies the disk quota, as a percentage, that a source can use on any single executor node only when local caching is enabled. The default is 100 percent of the total disk space available on the mount point provided for caching. You can either manually enter a percentage in the value field or use the arrows to the far right to adjust the percentage.

Reflection Refresh

You can set the policy that controls how often reflections are scheduled to be refreshed automatically, as well as the time limit after which reflections expire and are removed.

Refresh Settings

  • Never refresh: Prevent automatic Reflection refresh. By default, Reflections refresh automatically.
  • Refresh every: Set the refresh interval in hours, days, or weeks. Ignored if Never refresh is selected.
  • Set refresh schedule: Specify a daily or weekly refresh schedule.

Expire Settings

  • Never expire: Prevent reflections from expiring. By default, reflections expire after the configured time limit.
  • Expire after: The time limit after which reflections are removed from Dremio, specified in hours, days, or weeks. Ignored if Never expire is selected.

Metadata

Specifying metadata options is handled with the following settings.

Dataset Handling

  • Remove dataset definitions if underlying data is unavailable (default).

Dataset Discovery

The refresh interval for fetching top-level source object names such as databases and tables.

  • Fetch every: You can choose to set the frequency to fetch object names in minutes, hours, days, or weeks. The default frequency to fetch object names is 1 hour.

Dataset Details

The metadata that Dremio needs for query planning, such as information needed for fields, types, shards, statistics, and locality.

  • Fetch mode: You can choose to fetch only from queried datasets. Dremio updates details for previously queried objects in a source. By default, this is set to Only Queried Datasets.
  • Fetch every: You can choose to set the frequency to fetch dataset details in minutes, hours, days, or weeks. The default frequency to fetch dataset details is 1 hour.
  • Expire after: You can choose to set the expiry time of dataset details in minutes, hours, days, or weeks. The default expiry time of dataset details is 3 hours.

Privileges

You can grant privileges to specific users or roles. To grant access to a user or role:

  1. For Privileges, enter the user name or role name to which you want to grant access and click Add to Privileges. The added user or role is displayed in the USERS/ROLES table.
  2. For the users or roles in the USERS/ROLES table, toggle the checkmark for each privilege you want to grant on the Dremio source being created.
  3. Click Save after setting the configuration.

Update an Iceberg REST Catalog Source

To update an Iceberg REST Catalog:

  1. On the Datasets page, under Lakehouse Catalogs in the panel on the left, find the name of the source you want to edit.
  2. Right-click the source name and select Settings from the list of actions. Alternatively, click the source name and then the The Settings icon at the top right corner of the page.
  3. In the Source Settings dialog, edit the settings you wish to update. Dremio does not support updating the source name.
  4. Click Save.

Delete an Iceberg REST Catalog Source

To delete an Iceberg REST Catalog source:

  1. On the Datasets page, click Sources > Lakehouse Catalogs in the panel on the left.
  2. In the list of data sources, hover over the name of the source you want to remove and right-click.
  3. From the list of actions, click Delete.
  4. In the Delete Source dialog, click Delete to confirm that you want to remove the source.
note

If the source is in a bad state (for example, Dremio cannot authenticate to the source or the source is otherwise unavailable), only users who belong to the ADMIN role can delete the source.

Supported Configurations

Select your catalog type below.

General Settings

  • Endpoint URI: http://localhost:8181/api/catalog
  • Use vended credentials: Unchecked

Advanced Options – Catalog Properties

  • warehouse: polaris_oss_catalog
  • scope: PRINCIPAL_ROLE:ALL
  • fs.s3a.aws.credentials.provider: org.apache.hadoop.fs.s3a.SimpleAWSCredentialsProvider

Advanced Options – Catalog Credentials

  • fs.s3a.access.key: <s3AccessKey>
  • fs.s3a.secret.key: <s3SecretKey>
  • credential: <client_id:client_secret>