CData Python Connector for Presto

Build 23.0.8839

接続の確立

コネクタ内で利用可能なオブジェクトは、"cdata.presto" モジュールからアクセスできます。モジュールのオブジェクトを直接使用するには:

  1. モジュールを以下のようにインポートします。
    import cdata.presto as mod
  2. 接続を確立するには、以下のような適切な接続文字列を使用してコネクタオブジェクトからconnect() メソッドを呼び出します。
    mod.connect("Server=127.0.0.1;Port=8080;")

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) 2024 CData Software, Inc. - All rights reserved.
Build 23.0.8839