Skip to main content
Version 3.0

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.

ChartVersion3.0.3TypeapplicationAppVersion478
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

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​

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.

tpch

Provides synthetic TPC-H benchmark data, useful for initial tests and validation.

tpcds

Provides synthetic TPC-DS benchmark data for analytical/data warehouse scenarios.

memory

Lets you create temporary in-memory tables, useful for simple tests.

The Trino reference catalogs

namespace <NAMESPACE>port-forwardtrino clientport-forwardTrinocatalogs in tdp-trino.catalogstpch · tpcds · memorydefault catalogs
  1. trino client. Without external exposure, kubectl opens a tunnel from your machine to the Trino Service, and the trino client connects through it.
  2. 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)
  3. 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)
With chart defaults, Trino only has reference catalogs. Click an element to see what it is.

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.

Click the markers to understand each line.

1tdp-trino:
2catalogs:
3 tpch: |
4 connector.name=tpch
5 tpch.splits-per-node=4
6
7 tpcds: |
8 connector.name=tpcds
9 tpcds.splits-per-node=4
10
11 memory: |
12 connector.name=memory

All Trino values belong under the subchart key. Without this prefix, Helm does not apply the block to Trino.

  1. Chart prefix (linha 1). All Trino values belong under the subchart key. Without this prefix, Helm does not apply the block to Trino.
  2. catalogs (linha 2). Catalogs belong here. To enable a connector, add an entry following the chart examples.
  3. 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.
  4. connector.name (linha 4). Defines which connector Trino loads for this catalog. Later scenarios use clickhouse, hive, iceberg, kafka and postgresql.
  5. tpcds (linha 7). Synthetic TPC-DS benchmark data.
  6. memory (linha 11). Temporary in-memory tables.
Chart default catalogs

Ranger is not a catalog. Access control uses tdp-trino.accessControl, additional coordinator files and, in many scenarios, certificates. See 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.

When something goes wrong​

Troubleshooting

Choose a symptom or describe what you see. The answer includes the cause and what to do.

  1. 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).
  2. 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).
  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.

Next steps​