Allow connections from Databrain to your Trino cluster.
For details on setting up IP whitelisting and ensuring secure connectivity, refer to our guide on:
Make sure your Trino cluster is active and accessible from the machine running Databrain.
This is dependent on your networking setup. The easiest way to verify if Databrain is able to connect to your Trino cluster is via the Add a Data Source UI.
For a deeper dive on configuring your cluster’s access, you can consult the Trino documentation.
Grant Necessary Permissions:
Read Access on Tables and Catalogs: Grant read access permissions to the tables within Trino as well as the system information schema. This allows Databrain to retrieve necessary information and replicate data accurately. You can assign appropriate permissions to the user or role accessing Trino to enable reading from tables and accessing metadata.
Grant SELECT permission on all tables in the specified schema: GRANT SELECT ON schema_name.* TO USER your_user;
Grant access to system information views: GRANT SELECT ON system.information_schema.* TO USER your_user;
Fill Up Connection Information:Provide the necessary information to connect to your cluster:
Host/Server: The hostname or IP address of your Trino coordinator
Port: e.g., 8080 (HTTP) or 8443 (HTTPS)
Catalog: The catalog you want to connect to (e.g., hive, postgresql, mysql)
Schema: The default schema within the catalog (e.g., default)
Username: Username to access the database
Password: Password associated with the username (if authentication is enabled)
SSL/TLS: Specify if SSL/TLS encryption is required for the connection
Note on Catalog and Schema Configuration:
Catalog: Trino uses catalogs to organize data sources. Each catalog represents a connection to a data source like Hive, PostgreSQL, etc.
Default Schema: This is the default schema tables are accessed from if not explicitly specified. Common values include default or public.