JDBC Driver for Presto

Build 22.0.8479

接続の確立

JDBC データソースの作成

Java アプリケーションから接続するJDBC データソースを作成できます。CData JDBC Driver for Presto に基づくJDBC データソースの作成は、3つの基本ステップで構成されます。

  • ドライバーのJAR ファイルをクラスパスに追加します。JAR ファイルはインストールディレクトリの[lib]サブフォルダ内にあります。.lic ファイルはJAR ファイルと同じフォルダ内に配置される必要があることに注意してください。
  • ドライバークラスを入力します。次に例を示します。
    cdata.jdbc.presto.PrestoDriver
  • JDBC URL を入力します。次に例を示します。
    jdbc:presto:Server=127.0.0.1;Port=8080;
    
    or
    
    jdbc:cdata:presto:Server=127.0.0.1;Port=8080;

    上記の2つ目の形式は、同じURL 形式を使用しているドライバー間でアプリケーションに競合がある場合は、CData ドライバーを使用していることを確認するために常に使用できます。URL は "jdbc:presto:" または"jdbc:cdata:presto:" のいずれかから始まり、任意の接続プロパティの名前と値のペアをセミコロン区切りで入力します。

Connecting to Presto

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

Securing Presto Connections

To enable TLS/SSL in the 本製品, set UseSSL to true.

Authenticating to Presto

Presto may be authenticated to by either LDAP or Kerberos. If the Presto server does not have authentication set up, leave AuthScheme set to NONE (default). In order to authenticate with either LDAP or Kerberos, follow the below steps:

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.

Kerberos

Please see Kerberos の使用 for details on how to authenticate with Kerberos.

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8479