Creating a catalog
Create an Iceberg REST Catalog catalog within your project namespace. The Iceberg REST Catalog and Object Storage components must be enabled in the cluster.
A bucket for the catalog data and its access key are provisioned automatically. You do not need to create them beforehand.
Using the CLI
-
Create a file named
stacklandrestcatalog.yamlwith theStacklandRestCatalogresource configuration:apiVersion: stacklandrestcatalog.stackland.yandex.cloud/v1alpha1 kind: StacklandRestCatalog metadata: name: analytics spec: description: Analytics Iceberg catalog labels: environment: test deletionProtection: falseSpecify the catalog name in
metadata.name. You can also add an optional description inspec.description, set labels inspec.labels, or enable deletion protection withspec.deletionProtection: true. Labels are set only when a catalog is created. -
Apply the manifest:
kubectl apply -f stacklandrestcatalog.yaml -n <namespace> -
Check the catalog status:
kubectl get stacklandrestcatalog analytics -n <namespace>Wait for the
readystatus in thePhasecolumn.
Using the management console
-
Open the project and select the namespace you want to create the catalog in.
-
In the left-hand menu, select REST Catalog → Catalogs.
-
Click Create catalog.
-
Under Main parameters, fill in the following fields:
- Name: Catalog name that is unique within the namespace. Use up to 63 characters: lowercase Latin letters, digits, and hyphens. The name must start with a letter and end with a letter or digit.
- Description: Description up to 256 characters long. This is an optional field.
- Labels: Key-Value pairs. To add a pair, click Add label. The keys must be unique. Labels cannot be modified after the catalog is created.
- Deletion protection: Enable this option to prevent accidental deletion of the catalog and its data.
-
Click Create and wait for the catalog to appear as ready in the list.
After creating it, assign permissions to users, groups, or service accounts. To query data via Trino, connect the catalog to a cluster within the same namespace.