Ready to get started?

Download a free trial of the Presto Driver to get started:

 Download Now

Learn more:

Presto Icon Presto JDBC Driver

Rapidly create and deploy powerful Java applications that integrate with Presto.

Connect to Presto Data in Aqua Data Studio



Access Presto data from tools in Aqua Data Studio such as the Visual Query Builder and the Table Data Editor.

The CData JDBC Driver for Presto integrates Presto data with wizards and analytics in IDEs like Aqua Data Studio. This article shows how to connect to Presto data through the connection manager and execute queries.

Create a JDBC Data Source

You can use the connection manager to define connection properties and save them in a new JDBC data source. The Presto data source can then be accessed from Aqua Data Studio tools.

  1. In Aqua Data Studio, select Register Server from the Servers menu.
  2. In the Register Server form, select the 'Generic - JDBC' connection.
  3. Enter the following JDBC connection properties:
    • Name: Enter a name for the data source; for example, Presto.
    • Driver Location: Click the Browse button and select the cdata.jdbc.presto.jar file, located in the lib subfolder of the installation directory.
    • Driver: Enter the Driver's class name, cdata.jdbc.presto.PrestoDriver.
    • URL: Enter the JDBC URL, which starts with jdbc:presto: and is followed by a semicolon-separated list of connection properties.

      Set the Server and Port connection properties to connect, in addition to any authentication properties that may be required.

      To enable TLS/SSL, set UseSSL to true.

      Authenticating with LDAP

      In order to authenticate with LDAP, set the following connection properties:

      • AuthScheme: Set this to LDAP.
      • User: The username being authenticated with in LDAP.
      • Password: The password associated with the User you are authenticating against LDAP with.

      Authenticating with Kerberos

      In order to authenticate with KERBEROS, set the following connection properties:

      • AuthScheme: Set this to KERBEROS.
      • KerberosKDC: The Kerberos Key Distribution Center (KDC) service used to authenticate the user.
      • KerberosRealm: The Kerberos Realm used to authenticate the user with.
      • KerberosSPN: The Service Principal Name for the Kerberos Domain Controller.
      • KerberosKeytabFile: The Keytab file containing your pairs of Kerberos principals and encrypted keys.
      • User: The user who is authenticating to Kerberos.
      • Password: The password used to authenticate to Kerberos.

      Built-in Connection String Designer

      For assistance in constructing the JDBC URL, use the connection string designer built into the Presto JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.

      java -jar cdata.jdbc.presto.jar

      Fill in the connection properties and copy the connection string to the clipboard.

      A typical JDBC URL is below:

      jdbc:presto:Server=127.0.0.1;Port=8080;

Query Presto Data

You can now query the tables exposed.