Trino
Connect & Ingest data from / to a Trino database
Setup
The following credentials keys are accepted:
http_url(required) -> The url to use to connect (examples:http://user:password@localhost:8080?catalog=memory&schema=test)catalog(required) -> The database / catalog name of the instanceschema(optional) -> The default schema to usesource(optional) -> Source of the connectionsession_properties(optional) -> Session properties, as amap[string]stringextra_credentials(optional) -> Extra credentials, as amap[string]stringcustom_client_name(optional) -> Custom client namekerberos_enabled(optional) -> KerberosEnabled (default is false)kerberos_keytab_path(optional) -> Kerberos Keytab Pathkerberos_principal(optional) -> Kerberos Principal used to authenticate to KDCkerberos_realm(optional) -> The Kerberos Realmkerberos_config_path(optional) -> The krb5 config pathssl_cert_path(optional) -> The SSL cert path on local disk for TLS verificationssl_cert(optional) -> The SSL cert string value for TLS verificationskip_tls(optional) -> Whether to skip TLS verification (specifytrue).query_timeout(optional since 1.2.21) -> The number of minutes to timeout a query (default is360).
Using sling conns
sling connsHere are examples of setting a connection named TRINO. We must provide the type=trino property:
$ sling conns set TRINO type=trino http_url="http://user:password@localhost:8080?catalog=memory&schema=test"
Environment Variable
export TRINO='{ type: trino, http_url: "http://user:password@localhost:8080?catalog=memory&schema=test" }'Sling Env File YAML
See here to learn more about the sling env.yaml file.
connections:
TRINO:
type: trino
http_url: <http_url>
catalog: <catalog>
schema: <schema>
ssl_cert_path: <ssl_cert_path>If you are facing issues connecting, please reach out to us at [email protected], on discord or open a Github Issue here.
Last updated
Was this helpful?