Updating Managed Service for Trino catalog settings
If you have a catalog in your Trino cluster, you can update the catalog’s settings.
Note
When you update a catalog, Managed Service for Trino recreates the cluster. While the system applies the new configuration, the cluster status switches to Updating and all active queries are terminated. For more information, see Updating a cluster.
-
Open the
TrinoCatalogresource file, e.g., using theopen trinocatalog.yamlcommand. -
Edit the properties of the selected catalog type.
For PostgreSQL and ClickHouse® catalogs, you can configure the following properties in the
spec.postgresandspec.clickhousesections, respectively:url: Data source address.credentialsSecretRef: Reference to the Secret with credentials.certificateSecretRef: Reference to the Secret with a TLS certificate.additionalProperties: Additional connector settings.
An Apache Iceberg™ catalog supports the following properties:
spec.stacklandRestCatalog.catalogRef:StacklandRestCatalogresource name in the same namespace. When selecting a different catalog, make sure it is ready for use and Trino users have the access permissions for it.spec.stacklandRestCatalog.useExternalEndpoint: Using an external catalog address. To set it totrue, you need to configure public access and fill thestatus.externalEndpointfield for the catalog.spec.stacklandRestCatalog.additionalProperties: Additional Iceberg settings, i.e., data format and compression, file size, filter requirements for queries, statistics, storage options, and Iceberg view support. Use this example of creating a catalog to add the properties and edit them as needed. When creating views, specifySECURITY INVOKER; for more information, see Iceberg views.
There must be a single section with connector settings in the manifest.
spec.typeis not used. Thespec.clusterandspec.namevalues must match themetadata.nameresource name in<spec.name>-<spec.cluster>format. -
Apply the manifest:
kubectl apply -f trinocatalog.yaml -n <namespace>.
If you store credentials in a Secret, update the Secret independently. You do not need to rename the secret name or keys.
-
If you have not opened a project yet, select one.
-
Select the namespace the cluster was created in.
-
In the left-hand menu, select Trino → Clusters.
-
Select the cluster and open the Catalogs tab.
-
Select the catalog.
-
Click Edit.
-
Edit the catalog configuration under Catalog settings. The Name and Type fields are read-only.
For PostgreSQL and ClickHouse®, the Password field is empty. If you save it empty, the existing secret value will remain unchanged. Enter a new value to update the Secret.
For Apache Iceberg™, you can select a different REST Catalog in the same namespace and change the Access method to Internal or External. The External method is available if the catalog you select has an external address. Make sure users have the access permissions for the new catalog.
In the Additional settings section, the key is read-only for existing rows; you can only change the value. Still, you can add new keys.
-
Click Save.
Done. The catalog settings have been updated.