The Java Database Connectivity (JDBC) driver enables any application supporting a JDBC driver to connect to Starburst Galaxy, Starburst Enterprise platform (SEP), and Trino clusters. The application can then issue SQL queries and receive results.
Typically the applications are JVM-based, or support JDBC driver usage with a different mechanism. Using an applications with the JDBC driver generally follows the same steps.
Get the connection information and cluster version for the cluster you want to connect to and use to run queries.
The way to add the JDBC driver to your client application varies for each application.
Some applications, such as DBeaver, automatically download and configure the driver, or include it by default and no action is necessary.
Many applications, however, require you to download the driver and place it in a directory that varies for each application. Refer to your client application’s documentation for the necessary details.
The JDBC driver needs to be compatible with the version of the cluster you are connecting to.
You can request the JDBC driver to match a specific Starburst version from Starburst Support or directly from the SEP documentation.
Alternatively, to gain access to SEP archives, visit the Starburst website and click either Get Started or Download Free.
This opens a dialog that prompts for your name, email address, and location. Fill out the form using a valid email address, then click Free Download.
Click the link to the Downloads page in the resulting email. The page is organized into Long-Term Support (LTS) and Short-Term Support (STS) sections. The LTS section is split into Starburst Enterprise and Client applications steps.
If your cluster version is a current release, use the LTS Step 2 or STS sections to download the JDBC driver version that matches your cluster version.
You can also download the Latest version of the JDBC driver binary directly from the SEP documentation.
Use the SEP documentation’s version selector in the top right corner to select the download page for different releases, or contact Starburst Support.
With an installed driver you can now configure a connection to a cluster. Typically, you only need the connection information. Other details such as the JDBC URL are automatically configured in many applications, or can be seen and updated in a user interface dialog.
The main parameters are the driver classname, which is typically preconfigured by your client driver integration, the JDBC URL and the credentials from the needed connection information.
Driver version 354 and newer:
io.trino.jdbc.TrinoDriver
jdbc:trino://host:port
Driver version 350 and older:
io.prestosql.jdbc.PrestoDriver
jdbc:presto://host:port
The host
parameter is the network name or IP address of the coordinator of
your SEP cluster. Enter the port
provided by your network
administrator, or enter one of the default ports
for SEP clusters. See the SEP documentation for the JDBC
driver for other supported JDBC
parameters.
If your Starburst cluster is configured to require a TLS connection from clients, you must configure your client as follows:
Specify the JDBC parameter SSL=true
(where the older term SSL
activates
TLS
support).
?SSL=true
to the JDBC connection string. For
example:jdbc:trino://host:port?SSL=true
The configured connection can now be opened and you can start running queries.
For example, if your application allows you to write and run queries, you can see what catalogs are available:
SHOW CATALOGS;
Many applications provide a user interface to see the list of catalogs, schema, tables and much more.
Now you can take advantage of the features of your application, and potentially learn more about the SQL support in Starburst.
Is the information on this page helpful?
Yes
No