Skip to main content

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 8080 for HTTP. HTTPS clusters are usually on 443 or 8443.
  • The catalog to query, for example hive or iceberg.
  • 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​

SetupWhat you provide
AnonymousA username only. Leave the password blank.
PasswordA username and password, with Use SSL (TLS) turned on.

Connecting to Trino​

  1. Open Project Settings

    In your EKB project, navigate to Settings in the sidebar.

  2. Go to Connections

    Select the Connections tab and find the Trino tile under Databases.

  3. Open the Trino popup

    Click the Trino tile. A popup appears with the option to connect Trino. Click + Add Connection.

  4. Fill in the connection form

    Enter the following details:

    Server

    FieldRequiredDescription
    HostYesThe hostname of your Trino coordinator (e.g. trino.example.com).
    PortYesThe port the coordinator listens on. Default is 8080.

    Database

    FieldRequiredDescription
    CatalogYesThe Trino catalog to query (e.g. hive).
    SchemaNoA default schema. Leave blank to list every schema in the catalog.

    Authentication

    FieldRequiredDescription
    UsernameYesThe query identity Trino records for each request.
    PasswordNoOnly for clusters that require password sign-in. Requires Use SSL (TLS).

    Connection type

    FieldDescription
    Use SSL (TLS)Connect over HTTPS. Required when a password is set.
  5. 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!