Presto 0.177 Documentation

2.3. JDBC Driver

2.3. JDBC Driver

Presto can be accessed from Java using the JDBC driver. Download presto-jdbc-0.177.jar and add it 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