Trino

Integrate with Trino for ad-hoc queries with Full SQL

Start running Trino Image with pre-built Trino Pinot connector.

1. Install Pinot

Run below command to install Pinot using HelmCharts.

helm repo add pinot https://raw.githubusercontent.com/apache/pinot/master/kubernetes/helm
kubectl create ns pinot-quickstart
helm install pinot pinot/pinot -n pinot-quickstart --set cluster.name=pinot

You can create an example table by running the command below, if you are under pinot binary directory

Before PR https://github.com/trinodb/trino/pull/7630 got merged, Change the Pinot table name to all lower cases for table conf/schema and ingestion job spec

bin/pinot-admin.sh BootstrapTable -dir examples/batch/airlineStats

2. Install Trino

Run below command to add Trino Helm repo and fetch default helm config file:

helm repo add trino https://trinodb.github.io/charts/
helm inspect values trino/trino > /tmp/trino.yaml

Edit /tmp/trino.yaml file to add your pinot catalog:

Here, since pinot is deployed at namespace pinot-quickstart, so the controller url is pinot-controller.pinot-quickstart:9000

Install Trino HelmCharts with config file:

3. Connecting to Trino

Download Trino Client.

Port forward Trino service to your local if it's not already exposed.

Use Trino console client to connect to Trino service

Then write your own queries:

Meanwhile you can access Trino Cluster UI to see query stats.

Trino Cluster UI

(Disclaimer: Trino is a third-party software that is not part of the Apache Software Foundation).

Last updated

Was this helpful?