Connect Generic JDBC Client to Kafka
β
DISCLAIMER:- We have used SQirreL SQL client for this Tutorial other JDBC clients will have similar setup but please refer to the documentation of your SQL client to connect JDBC driver.
β
Step 1:- Download Trino Driver
β
Download the Trino Driver using the following link https://repo1.maven.org/maven2/io/trino/trino-jdbc/449/trino-jdbc-449.jar
β
Step 2:- Open JDBC client and Add the Driver
β
a. Select New Driver.
b. Enter the following information in each field:
β
- Name: Trino
- Example URL: jdbc:trino://host:port?SSL=true
- Website URL: tps://trino.io
β
c. Select the Extra Class Path tab.
β
d. Click Add and navigate to the JDBC driver .jar you downloaded.
β
e. Click List Drivers.
β
f. Set the Class Name to io.trino.jdbc.TrinoDriver.
β
g. Click OK. Look for a success message in the client logs if the driver setup was successful
β
Step 3:- Enter the Configuration
β
β
a. Select Add Alias.
β
b. Enter the following information in each field:
β
Name: Streambased (or any meaningful name)
βDriver: Streambased Trino (as created during the driver configuration steps)
βURL: jdbc:trino://streambased.cloud:8443?SSL=true
User Name: streambasedΒ
β
Step 4:- Test the Connection
β
β
Click Test Button from the Add Alias window and then the above Window appears click Connect
If the connection is successful Click Connect and follow the same instruction as followed during the test connection process
β
Step 5:- Run your Queries
β
β
Now run your queries
β