Each data source
becomes a Trino catalog.
Five scenarios: what a catalog is and which ones already come in the chart, and how to connect ClickHouse, the lakehouse (Hive and Iceberg on S3), Kafka, or PostgreSQL. Each one covers: what the source requires, the values file block commented line by line, and a step-by-step with verification.
The tdp-trino chart integrates data sources through catalogs defined in tdp-trino.catalogs. Each catalog is a block of Trino connector properties and is available for queries in catalog.schema.object format. For installation, workers and autoscaling, see Trino Configuration.
Your environment
If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.
Scenarios
- 1 · How it connects
- 2 · ClickHouse
- 3 · Iceberg and Hive in S3/Ozone
- 4 · Kafka
- 5 · PostgreSQL
What a catalog is, which ones the chart includes and how to add and query a new one.
Trino connects to each data source through a catalog: a properties block in tdp-trino.catalogs that specifies which connector to use and where the source is. By default, the chart includes only three reference catalogs, for testing Trino without an external source. The following tabs provide each connector's block: ClickHouse, Iceberg and Hive on S3/Ozone, Kafka and PostgreSQL.
You want Trino to query your own data source and need to understand where it fits. To enable a connector, add an entry to catalogs following the chart examples. This tab shows the anatomy of a catalog, the default catalogs, and how to apply and query.
tpchProvides synthetic TPC-H benchmark data, useful for initial tests and validation.
tpcdsProvides synthetic TPC-DS benchmark data for analytical/data warehouse scenarios.
memoryLets you create temporary in-memory tables, useful for simple tests.
The Trino reference catalogs
- trino client. Without external exposure, kubectl opens a tunnel from your machine to the Trino Service, and the trino client connects through it.
- Trino. Each key in tdp-trino.catalogs becomes a catalog with the connector specified in connector.name. Queries use the catalog name: catalog.schema.object. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - Default catalogs. Synthetic data from TPC-H and TPC-DS benchmarks and temporary in-memory tables: useful for testing Trino without an external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs)
The anatomy of a catalog
The catalog block supplied by the chart, explained line by line. Each new catalog follows the same form: a key with its name and connector properties as its value.
1tdp-trino:2catalogs:3 tpch: |4 connector.name=tpch5 tpch.splits-per-node=467 tpcds: |8 connector.name=tpcds9 tpcds.splits-per-node=41011 memory: |12 connector.name=memory
All Trino values belong under the subchart key. Without this prefix, Helm does not apply the block to Trino.
- Chart prefix (linha 1). All Trino values belong under the subchart key. Without this prefix, Helm does not apply the block to Trino.
- catalogs (linha 2). Catalogs belong here. To enable a connector, add an entry following the chart examples.
- Catalog name (linha 3). The key is the name appearing in queries, in catalog.schema.object format. The value is multiline text containing connector properties.
- connector.name (linha 4). Defines which connector Trino loads for this catalog. Later scenarios use clickhouse, hive, iceberg, kafka and postgresql.
- tpcds (linha 7). Synthetic TPC-DS benchmark data.
- memory (linha 11). Temporary in-memory tables.
Ranger is not a catalog. Access control uses tdp-trino.accessControl, additional coordinator files and, in many scenarios, certificates. See Security - Trino.
Add the catalog to the values file
A new catalogs key for each source.
Start with the connector block in scenarios 2 to 5 and replace placeholders with your environment's addresses and credentials.
Apply to the release
The same command installs and upgrades.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
kubectl -n <NAMESPACE> get pods
The coordinator and workers reach Running.
If a pod does not start
Namespace events, in chronological order, show the reason:
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp
Then see When something goes wrong.
Query through the trino client
Without external exposure, kubectl opens a tunnel from your machine to the Service.
kubectl port-forward -n <NAMESPACE> svc/<RELEASE_NAME>-tdp-trino 8080:8080 &
trino --server http://localhost:8080
The Service name derives from the release: <RELEASE_NAME>-tdp-trino, or just <RELEASE_NAME> when the release name already contains tdp-trino.
Success criteria
trino client connects and accepts queries to the new catalog, in catalog.schema.object format.For HTTPS/LDAP, follow Security - Trino.
Any other Trino connector is added the same way: a block in tdp-trino.catalogs with connector.name and that connector's properties. The chart does not limit the list. Connectors and their properties are in the Trino documentation.
JDBC connection: Service address, database and credentials.
You have ClickHouse data and want to query it through Trino. The clickhouse catalog connects through JDBC: the ClickHouse Service address, database and credentials. A password Secret is optional and, when used, is created before deployment.
ClickHouse deployed and accessible, and a user that accepts connections from other pods: tdpuser, created by the ClickHouse chart with tdp-clickhouse.clickhouse.tdpUser.enabled, or a user of your own. The default user only accepts local connections.
Optional password Secret.
The clickhouse catalog
- trino client. Without external exposure, kubectl opens a tunnel from your machine to the Trino Service, and the trino client connects through it.
- Trino. Each key in tdp-trino.catalogs becomes a catalog with the connector specified in connector.name. Queries use the catalog name: catalog.schema.object. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - Default catalogs. Synthetic data from TPC-H and TPC-DS benchmarks and temporary in-memory tables: useful for testing Trino without an external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - ClickHouse. Reached through JDBC, with the address, the database and a user that accepts connections from other pods. Must be deployed and accessible. (
tdp-trino.catalogs.clickhouse)
The values file
1tdp-trino:2catalogs:3 clickhouse: |4 connector.name=clickhouse5 connection-url=jdbc:clickhouse://<CLICKHOUSE_SERVICE>:8123/<DATABASE_NAME>6 connection-user=<USERNAME>7 connection-password=<PASSWORD>8 domain-compaction-threshold=1000
The key becomes the catalog name in queries.
- Catalog name (linha 3). The key becomes the catalog name in queries.
- Connector (linha 4). Loads Trino's ClickHouse connector.
- JDBC address (linha 5). The ClickHouse Service, HTTP port and database. With TDP charts, the Service is clickhouse-<release>, in the ClickHouse namespace.
- Credentials (linha 6). ClickHouse username and password: tdpuser or a user of your own, because default only accepts local connections. Replace placeholders with your environment's values before applying.
Create the password SecretOpcional
Optional: stores the ClickHouse password in a Secret.
kubectl create secret generic tdp-clickhouse-trino-secret \
--from-literal=password=<PASSWORD> \
--namespace <NAMESPACE>
Add the block to the values file
Replace placeholders with your ClickHouse address, database and credentials.
If you already have a Trino values file, add the catalog to the same catalogs key.
Apply and query
The same command installs and upgrades.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
Running and the clickhouse catalog accepts queries through the trino client, as in scenario 1.If a pod does not start
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp
Hive Metastore stores metadata. Data is stored at an S3-compatible endpoint, such as the Ozone S3 Gateway or MinIO.
Your data is in S3-compatible object storage and you want to query it as Hive and Iceberg tables. Use Hive Metastore, the service that stores table metadata, and an S3-compatible endpoint, such as the Ozone S3 Gateway or MinIO. The chart provides both catalogs together, hive and iceberg, using the same Hive Metastore and S3 endpoint.
Hive Metastore deployed and accessible, and S3-compatible storage (MinIO, AWS S3 and others).
With Ozone security disabled, any nonempty pair. With it enabled, keys from the ozone-s3-credentials Secret.
The hive and iceberg catalogs on Ozone
- trino client. Without external exposure, kubectl opens a tunnel from your machine to the Trino Service, and the trino client connects through it.
- Trino. Each key in tdp-trino.catalogs becomes a catalog with the connector specified in connector.name. Queries use the catalog name: catalog.schema.object. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - Default catalogs. Synthetic data from TPC-H and TPC-DS benchmarks and temporary in-memory tables: useful for testing Trino without an external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - Hive Metastore. Stores table metadata. The hive and iceberg catalogs reach it through the Thrift address in hive.metastore.uri. Must be deployed and accessible. (
hive.metastore.uri) - S3 endpoint. Where data is stored. With TDP charts, this is the Ozone S3 Gateway; any S3-compatible storage, such as MinIO or AWS S3, can replace it. (
s3.endpoint)
The values file
1tdp-trino:2catalogs:3 hive: |4 connector.name=hive5 hive.metastore.uri=thrift://<HIVE_METASTORE_SERVICE>:90836 hive.non-managed-table-writes-enabled=true7 hive.non-managed-table-creates-enabled=true8 fs.native-s3.enabled=true9 s3.endpoint=<S3_ENDPOINT>10 s3.region=us-east-111 s3.aws-access-key=<S3_ACCESS_KEY>12 s3.aws-secret-key=<S3_SECRET_KEY>13 s3.path-style-access=true1415 iceberg: |16 connector.name=iceberg17 iceberg.catalog.type=hive_metastore18 hive.metastore.uri=thrift://<HIVE_METASTORE_SERVICE>:908319 fs.native-s3.enabled=true20 s3.endpoint=<S3_ENDPOINT>21 s3.region=us-east-122 s3.aws-access-key=<S3_ACCESS_KEY>23 s3.aws-secret-key=<S3_SECRET_KEY>24 s3.path-style-access=true
For Hive tables. The key becomes the name used in queries: hive.schema.tabela.
- hive catalog (linha 3). For Hive tables. The key becomes the name used in queries: hive.schema.tabela.
- Metastore (linha 5). Hive Metastore Thrift address, where table metadata is stored. With TDP charts, see addresses below.
- Native S3 (linha 8). Enables Trino's native S3 filesystem; s3.* properties below point to the endpoint and credentials.
- S3 endpoint (linha 9). With TDP charts, this is the Ozone S3 Gateway. Any S3-compatible endpoint, such as MinIO, can replace it.
- Credentials (linha 11). With Ozone security disabled, any nonempty pair works. With it enabled, use keys from the ozone-s3-credentials Secret.
- iceberg catalog (linha 15). For Iceberg tables, using the same Hive Metastore and S3 endpoint.
- Iceberg catalog type (linha 17). hive_metastore: the Iceberg catalog uses Hive Metastore for metadata.
Addresses with TDP charts
With TDP charts in the same namespace and default release names, catalog addresses are:
hive.metastore.uri=thrift://tdp-hive-metastore-metastore.<NAMESPACE>.svc.cluster.local:9083
s3.endpoint=http://tdp-ozone-s3g-rest.<NAMESPACE>.svc.cluster.local:9878
With Ozone security disabled, S3 keys can be any nonempty pair. With it enabled, use the ozone-s3-credentials Secret (aws_access_key_id and aws_secret_access_key).
With Ozone security enabled through the GitOps kit, the S3 key comes from the ozone-s3-credentials Secret: AWS_* environment variables in the coordinator and workers, and hive and iceberg catalogs use ${ENV:AWS_ACCESS_KEY_ID}. See Ozone security in the GitOps kit.
In Ozone with a single datanode (Single-node OpenShift, OpenShift Local), Trino requests STANDARD by default, which Ozone translates into more replicas than one datanode can accommodate, and all writes fail. To prevent this, add s3.storage-class=REDUCED_REDUNDANCY to both catalogs.
Add both catalogs to the values file
Replace placeholders with Hive Metastore and S3 endpoint addresses and credentials.
With TDP charts, use the addresses above. In Ozone with a single datanode, also add s3.storage-class=REDUCED_REDUNDANCY to both catalogs.
Apply and query
The same command installs and upgrades.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
Running and the hive and iceberg catalogs accept queries through the trino client, as in scenario 1.If writes fail or a pod does not start
In Ozone with a single datanode, check the storage class (warning above). With Ozone security enabled, check S3 keys. For pods that do not start:
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp
Topics queried as tables, with optional Schema Registry for Avro or Protobuf.
You want to query Kafka topics with SQL, as tables. The kafka catalog points to the Kafka cluster brokers and the directory with connector table descriptions. Schema Registry is optional for Avro and Protobuf formats.
Kafka cluster deployed and accessible.
Schema Registry, for Avro and Protobuf formats.
The kafka catalog and the Schema Registry
- trino client. Without external exposure, kubectl opens a tunnel from your machine to the Trino Service, and the trino client connects through it.
- Trino. Each key in tdp-trino.catalogs becomes a catalog with the connector specified in connector.name. Queries use the catalog name: catalog.schema.object. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - Default catalogs. Synthetic data from TPC-H and TPC-DS benchmarks and temporary in-memory tables: useful for testing Trino without an external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - Kafka. The Kafka cluster whose topics the catalog queries. Must be deployed and accessible. (
kafka.nodes) - Schema Registry. Optional, for Avro and Protobuf formats.
The values file
1tdp-trino:2catalogs:3 kafka: |4 connector.name=kafka5 kafka.nodes=<KAFKA_BOOTSTRAP_SERVICE>:90926 kafka.table-description-dir=/etc/trino/kafka7 kafka.default-schema=default8 kafka.hide-internal-columns=false9 kafka.buffer-size=64kB
The key becomes the catalog name in queries.
- Catalog name (linha 3). The key becomes the catalog name in queries.
- Connector (linha 4). Loads Trino's Kafka connector.
- Brokers (linha 5). Kafka cluster bootstrap address.
- Table descriptions (linha 6). Directory containing Kafka connector table descriptions.
Add the block to the values file
Replace the placeholder with your Kafka bootstrap address.
If you already have a Trino values file, add the catalog to the same catalogs key.
Apply and query
The same command installs and upgrades.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
Running and the kafka catalog accepts queries through the trino client, as in scenario 1.If a pod does not start
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp
JDBC connection: address, database and credentials, from the commented chart example.
You have data in PostgreSQL and want to query it through Trino, including alongside other sources in the same query. The postgresql catalog connects through JDBC: the PostgreSQL address, database and credentials. The chart includes this catalog as a commented example. To enable it, add the block to the values file.
postgresql catalog commented out in the values file: disabled until you add it.
PostgreSQL accessible from the Trino coordinator and workers.
The postgresql catalog
- trino client. Without external exposure, kubectl opens a tunnel from your machine to the Trino Service, and the trino client connects through it.
- Trino. Each key in tdp-trino.catalogs becomes a catalog with the connector specified in connector.name. Queries use the catalog name: catalog.schema.object. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - Default catalogs. Synthetic data from TPC-H and TPC-DS benchmarks and temporary in-memory tables: useful for testing Trino without an external source. Chart default:
tpch, tpcds, memory. (tdp-trino.catalogs) - PostgreSQL. Reached through JDBC, with the catalog address, database and credentials. Must be accessible from the cluster. (
tdp-trino.catalogs.postgresql)
The values file
1tdp-trino:2catalogs:3 postgresql: |4 connector.name=postgresql5 connection-url=jdbc:postgresql://<DATABASE_HOST>:5432/<DATABASE_NAME>6 connection-user=<DATABASE_USER>7 connection-password=<DATABASE_PASSWORD>
The key becomes the catalog name in queries.
- Catalog name (linha 3). The key becomes the catalog name in queries.
- Connector (linha 4). Loads Trino's PostgreSQL connector.
- JDBC address (linha 5). The PostgreSQL host, port and database. Each catalog accesses one database: for another database or server, add another catalog with a different name.
- Credentials (linha 6). PostgreSQL username and password. Replace placeholders with your environment's values before applying.
Add the block to the values file
Replace placeholders with your PostgreSQL address, database and credentials.
If you already have a Trino values file, add the catalog to the same catalogs key.
Apply and query
The same command installs and upgrades.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-trino \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace \
-f <VALUES_FILE>
Success criteria
Pods reach Running and, in the trino client opened as in scenario 1, the postgresql catalog lists database schemas:
SHOW SCHEMAS FROM postgresql;
If a pod does not start or the catalog cannot connect
If the catalog cannot connect, check PostgreSQL accessibility from Trino pods and the block's address, database and credentials. For pods that do not start:
kubectl -n <NAMESPACE> get events --sort-by=.lastTimestamp
When something goes wrong
Troubleshooting
Choose a symptom or describe what you see. The answer includes the cause and what to do.
- Writes fail in Ozone with a single datanode. Cause: Trino requests the STANDARD class by default, which Ozone translates into more replicas than a single datanode can accommodate. What to do: Add s3.storage-class=REDUCED_REDUNDANCY to the hive and iceberg catalogs (scenario 3).
- S3 keys with Ozone security enabled. Cause: With Ozone security enabled, catalog S3 keys cannot be an arbitrary pair. What to do: Use the aws_access_key_id and aws_secret_access_key keys from the ozone-s3-credentials Secret (scenario 3).
- Other problem. Cause: Start with pod status and namespace events. What to do: Events in chronological order show what prevents the pod from starting.