CData Python Connector for Apache Phoenix

Build 24.0.8963

接続の確立

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

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

Apache Phoenix への接続

CData Python Connector for Apache Phoenix はPhoenix Query Server 経由でApache Phoenix に接続します。URL 接続プロパティを設定してApache Phoenix に接続します。

URL プロパティは通常、Apache Phoenix をホストしているサーバーのホスト名またはIP アドレスの後にポートを付けたものになります。例:http://localhost:8765

Apache Phoenix への認証

デフォルトでは、認証は使用されません(PLAIN)。認証がサーバー用に設定されている場合、以下の認証方法の1つを設定できます。

Basic

If your instance of Apache Phoenix has set up the basic authentication layer, set the following to authenticate:

  • AuthSchemeBasic に設定。
  • User:Apache Phoenix インスタンスのユーザーに設定。
  • Password:Apache Phoenix インスタンスのパスワードに設定。

Azure HDInsight

To authenticate to Azure HDInsight, set the following:

  • AuthSchemeAzureHDInsight に設定。
  • User:Set this to the cluster username that you specified when creating the cluster on Azure HDInsight.
  • Password:Set this to the cluster password that you specified when creating the cluster on Azure HDInsight.
  • ClusterName:Set this to the name of the cluster containing your Azure HDInsight instance.

すべての呼び出しはゲートウェイに送信され、ゲートウェイはリクエストを処理するノードの1つを選びます。クラスタの内部仮想ネットワーク内で実行している場合は、特定のノードにアクセス可能です。

Kerberos

AuthSchemeNegotiate に設定します。Kerberos で認証する方法についての詳細は、Kerberos の使用 を参照してください。

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.8963