File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed
docs/modules/trino/pages/usage-guide/catalogs Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change 31
31
accessStyle: Path
32
32
credentials:
33
33
secretClass: minio-credentials
34
- # We can use configOverrides to add arbitrary properties to the Trino catalog configuration
35
- configOverrides:
36
- hive.metastore.username: trino
37
34
---
38
35
apiVersion: trino.stackable.tech/v1alpha1
39
36
kind: TrinoCatalog
@@ -60,6 +57,31 @@ The `metadata.labels` are used by TrinoCluster to determine the link between Tri
60
57
The `spec.connector.<connector>` determines which connector is used.
61
58
Each connector supports a different set of attributes.
62
59
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
+
63
85
=== Add a catalog to a Trino cluster
64
86
65
87
It is necessary to specify within the TrinoCluster which catalogs it should use.
You can’t perform that action at this time.
0 commit comments