Skip to main content
Kinetica provides a SQL interface through its JDBC driver, which runs on Linux, Mac, & Windows. Clients that can’t use JDBC can connect using the PostgreSQL Wire Protocol. For details on the extent of SQL compliance, see the SQL section.

Connecting

KiSQL

KiSQL is a Kinetica JDBC-based SQL CLI client that is available on GitHub. Details can be found on the Kinetica SQL (KiSQL) page.

JDBC Applications

Java applications which use JDBC can reference the Kinetica JDBC driver in the Maven Central Repository as a pom.xml dependence:
Dependency
Gradle users may need to add the Kinetica Nexus Repository to their configuration:
To create a connection, using a connection string:
To create a connection, using properties:

JDBC Clients

JDBC connections require the Kinetica JDBC driver. Acquire the JDBC client JAR, kinetica-jdbc-7.2.<X>.<Y>-jar-with-dependencies.jar, from either:
  • the JDBC Client Project on GitHub
  • under /opt/gpudb/connectors/jdbc on default Kinetica installations
The following is the general driver and connection information that should be used when configuring a client.
  • Driver: <point to the downloaded JAR file>
  • Connection String:
  • Class Name: com.kinetica.jdbc.Driver
See JDBC Configuration for additional configuration parameters.

Secure Connections

When connecting to a Kinetica instance over HTTPS, the connection string should reference the database’s secure address.
See SSL Parameters for additional parameters that may be necessary to use when connecting over SSL.
Set the URL parameter on the JDBC connection string to use the HTTPS-enabled database endpoint.

Failover Connections

When connecting to a Kinetica instance with one or more failover clusters, the connection string should be updated to contain a comma-delimited list of head node addresses for all clusters. The URL of the primary cluster can also be specified. Add a URL parameter to the JDBC connection string to contain all cluster head node addresses and add a PrimaryURL parameter designating the cluster that should be tried first.

Tableau

See Using Tableau with Kinetica for connecting Tableau to Kinetica.

DBeaver

  1. Acquire the JDBC Driver
  2. Download & install DBeaver
  3. Configure DBeaver with the Kinetica JDBC driver
    1. On the Database menu, select Driver Manager
    2. Click New to create a new driver connection
    3. Complete the driver configuration page:
      • Driver Name: Kinetica
      • Class Name: com.kinetica.jdbc.Driver
    4. Click the Libraries tab; then click Add File and select the downloaded JAR:
    5. Click OK
    6. Click Close to exit Driver Manager
  4. Configure a connection:
    1. On the File menu, select New
    2. Ensure that Database Connection is selected and click Next >
    3. Select Kinetica and click Next >
    4. Click Connection Details and name the connection
      • Connection name: name for the connection
    5. Click Back
    6. Complete the connection configuration
      • JDBC URL:
    7. Enter authentication credentials
      • Username/password style authentication
        • Username: name of connecting user (admin for database administrator connection)
        • Password: password for connecting user
      • OIDC/OAuth style authentication
        1. Disable username/password auth
          • Save password: check this box, leaving Username & Password blank
        2. Click the Driver Properties tab
        3. Enter OAuth credentials
          • OAuthToken: OAuth token to use for authentication
    8. Click Finish to complete the connection configuration

Other JDBC Clients

For other clients, see JDBC Applications for the general setup to use.
There are many Java SQL clients available; a list can be found here.

JDBC Configuration

Configuration parameters are passed on the JDBC connection string, separated by semicolons; e.g.:
Some settings of note follow.

Standard Parameters

Server Override Parameters

The following are optional parameters that could be used to override the default settings, which are set by the server. See the Configuration Reference for more information on configuring the SQL Engine server-side. The default value for each of these options is 0.

Client Parameters

The following optional parameters may be used to change the JDBC client behavior.

SSL Parameters

The following optional parameters should be used when connecting over SSL.

Logging

Kinetica logs inbound SQL requests, internal calls made on behalf of those requests, and other debugging information. These logs can be found in the following log files:
  • /opt/gpudb/core/logs/host-manager-<hostname>-<datetime>.log: Contains all endpoint calls, including the initial call to /execute/sql and any endpoint calls made as a result of servicing the request
  • /opt/gpudb/sql/logs/sql-engine-<kinetica-hostname>.log: Contains detailed error messages