Connect Trino to the Knowledge Base
With the Trino connector, you can connect a Trino cluster to the Knowledge Base and index the tables in a catalog.
What you need
- The host and port of your Trino coordinator. The default port is
8080for HTTP. HTTPS clusters are usually on443or8443. - The catalog to query, for example
hiveoriceberg. - A username. Trino records it as the query identity, so it is required even on anonymous clusters.
- A password, only if your cluster requires password sign-in. Password sign-in requires Use SSL (TLS).
Authentication
| Setup | What you provide |
|---|---|
| Anonymous | A username only. Leave the password blank. |
| Password | A username and password, with Use SSL (TLS) turned on. |
Connecting to Trino
Open Project Settings
In your EKB project, navigate to Settings in the sidebar.
Go to Connections
Select the Connections tab and find the Trino tile under Databases.
Open the Trino popup
Click the Trino tile. A popup appears with the option to connect Trino. Click + Add Connection.
Fill in the connection form
Enter the following details:
Server
Field Required Description Host Yes The hostname of your Trino coordinator (e.g. trino.example.com).Port Yes The port the coordinator listens on. Default is 8080.Database
Field Required Description Catalog Yes The Trino catalog to query (e.g. hive).Schema No A default schema. Leave blank to list every schema in the catalog. Authentication
Field Required Description Username Yes The query identity Trino records for each request. Password No Only for clusters that require password sign-in. Requires Use SSL (TLS). Connection type
Field Description Use SSL (TLS) Connect over HTTPS. Required when a password is set. Save the connection
Click Save. EKB will connect to the coordinator using the details provided. If successful, the Trino tile on the Connections page will display a green dot and a count of your active Trino connections.
✓You're now ready to use your Trino data in the Knowledge Base!