Query Engines on Kubernetes
Connect query engines like Superset and Trino to Pinot on Kubernetes
After deploying Pinot in Kubernetes and loading data, you can connect external query engines for richer analytics and visualization.
Query Pinot with Superset
Bring up Superset using Helm
Install the SuperSet Helm repository:
helm repo add superset https://apache.github.io/supersetGet the Helm values configuration file:
helm inspect values superset/superset > /tmp/superset-values.yamlFor Superset to install Pinot dependencies, edit
/tmp/superset-values.yamlfile to add apinotdbpip dependency intobootstrapScriptfield.You can also build your own image with this dependency or use the image
apachepinot/pinot-superset:latestinstead.

Replace the default admin credentials inside the
initsection with a meaningful user profile and stronger password.Install Superset using Helm:
Ensure your cluster is up by running:
Access the Superset UI
Run the below command to port forward Superset to your
localhost:18088.
Navigate to Superset in your browser with the admin credentials you set in the previous section.
Create a new database connection with the following URI:
pinot+http://pinot-broker.pinot-quickstart:8099/query?controller=http://pinot-controller.pinot-quickstart:9000/Once the database is added, you can add more data sets and explore the dashboard options.
Access Pinot with Trino
Deploy Trino
Deploy Trino with the Pinot plugin installed:
See the charts in the Trino Helm chart repository:
In order to connect Trino to Pinot, you'll need to add the Pinot catalog, which requires extra configurations. Run the below command to get all the configurable values.
To add the Pinot catalog, edit the
additionalCatalogssection by adding:
After modifying the
/tmp/trino-values.yamlfile, deploy Trino with:
Once you've deployed Trino, check the deployment status:

Query Pinot with the Trino CLI
Once Trino is deployed, run the below command to get a runnable Trino CLI.
Download the Trino CLI:
Port forward Trino service to your local if it's not already exposed:
Use the Trino console client to connect to the Trino service:
Query Pinot data using the Trino CLI, like in the sample queries below.
Sample queries to execute
List all catalogs
List all tables
Show schema
Count total documents
Last updated
Was this helpful?

