7.2. JDBC Driver
Presto can be accessed from Java using the JDBC driver. The JDBC driver requires Java 1.8. Download the JDBC driver included in presto_client_pkg.141t.tar.gz from www.teradata.com/presto.. Add the JDBC jar to the class path of your Java application. The following JDBC URL formats are supported:
jdbc:presto://host:port
jdbc:presto://host:port/catalog
jdbc:presto://host:port/catalog/schema
For example, use the following URL to connect to Presto running on example.net port 8080 with the catalog hive and the schema sales:
jdbc:presto://example.net:8080/hive/sales