Skip to content

Commit 9fa6bc9

Browse files
committed
Add docs
1 parent f536ff3 commit 9fa6bc9

File tree

1 file changed

+25
-3
lines changed
  • docs/modules/trino/pages/usage-guide/catalogs

1 file changed

+25
-3
lines changed

docs/modules/trino/pages/usage-guide/catalogs/index.adoc

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ spec:
3131
accessStyle: Path
3232
credentials:
3333
secretClass: minio-credentials
34-
# We can use configOverrides to add arbitrary properties to the Trino catalog configuration
35-
configOverrides:
36-
hive.metastore.username: trino
3734
---
3835
apiVersion: trino.stackable.tech/v1alpha1
3936
kind: TrinoCatalog
@@ -60,6 +57,31 @@ The `metadata.labels` are used by TrinoCluster to determine the link between Tri
6057
The `spec.connector.<connector>` determines which connector is used.
6158
Each connector supports a different set of attributes.
6259

60+
=== Config overrides and config removals
61+
62+
You can use `.spec.configOverrides` to set arbitrary additional properties, which will be added to the catalog.
63+
64+
There is also `.spec.experimentalConfigRemovals` to remove any properties the operator might set, but are not used by Trino.
65+
This causes Trino to log an error message such as `Error: Configuration property 'hive.s3.aws-access-key' was not used` and refuse startup.
66+
By removing the unneeded properties you can get Trino to start again.
67+
68+
This example illustrates how to use config overrides and config removals
69+
70+
[source,yaml]
71+
----
72+
apiVersion: trino.stackable.tech/v1alpha1
73+
kind: TrinoCatalog
74+
spec:
75+
connector:
76+
# Config as normal...
77+
# Add some properties
78+
configOverrides:
79+
hive.metastore.username: trino
80+
# Remove some properties
81+
experimentalConfigRemovals:
82+
- hive.s3.aws-access-key
83+
----
84+
6385
=== Add a catalog to a Trino cluster
6486

6587
It is necessary to specify within the TrinoCluster which catalogs it should use.

0 commit comments

Comments
 (0)