> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sync.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Spark SQL

CData Sync アプリケーションからSpark SQL コネクタを使用して、Spark SQL からデータを取得してサポートされている任意の同期先に移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。

## Spark SQL コネクタを追加

Sync でSpark SQL のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります：

<ol>
  <li>Sync のダッシュボードから**接続**ページを開きます。</li>
  <li>**接続を追加**をクリックして**コネクタを選択**ページを開きます。</li>
  <li>**データソース**タブをクリックして
  **Spark SQL** 行に移動します。</li>

  <li>
    行末にある**接続を設定**アイコンをクリックして、**新しい接続**ページを開きます。この操作により、
    **接続を追加**ダイアログボックスが開きます。

    **Note：** **接続を設定**アイコンが表示されない場合は、**コネクタをダウンロード**アイコンをクリックして Spark SQL コネクタをインストールしてください。
  </li>

  <li>**接続を追加**ダイアログボックスに接続名を入力します。</li>
  <li>**追加**をクリックして、コネクタの**設定**タブを開きます。</li>
</ol>

新しいコネクタのインストールについての詳細は、
[接続](https://docs.sync.cdata.com/26.4/ja/connections/connections.md)を参照してください。

## Spark SQL への認証

After you add the connector, you need to set the required properties.

**Server:** Enter the host name or IP of the server that hosts your instance of Spark SQL.

CData Sync supports authenticating to Spark SQL in several ways. Select your authentication method below to proceed to the relevant section that contains the authentication details.

* [**Plain**](#plain) (default)
* [**NOSASL**](#nosasl)
* [**LDAP**](#ldap)
* [**Kerberos**](#kerberos)

### Plain

プレーンテキストログインで接続するには、以下のプロパティを指定します：

<ul><li>\*\*Auth Scheme：\*\***Plain** を選択。</li>
<li>\*\*User：\*\*Spark SQL アカウントへの認証に使用するユーザー名を入力。</li>
<li>\*\*Password：\*\*Spark SQL アカウントへの認証に使用するパスワードを入力。</li></ul>

### NOSASL

To connect without authentication, select **NOSASL** for **Auth Scheme**. No additional properties are required.

### LDAP

LDAP 認証情報で接続するには、次のプロパティを指定します：

<ul><li>\*\*Auth Scheme：\*\***LDAP** を選択。</li>
<li>\*\*User：\*\*Spark SQL アカウントへの認証に使用するユーザー名を入力。</li>
<li>\*\*Password：\*\*Spark SQL アカウントへの認証に使用するパスワードを入力。</li></ul>

### Kerberos

Kerberos で接続するには、以下を指定します：

<ul><li>\*\*Auth Scheme：\*\***Kerberos** を選択。</li>
<li>\*\*User：\*\*Spark SQL アカウントへの認証に使用するユーザー名を入力。</li>
<li>\*\*Password：\*\*Spark SQL アカウントへの認証に使用するパスワードを入力。</li>
<li>\*\*Kerberos KDC：\*\*Kerberos キー配布センター（KDC）マシンのホスト名またはIP アドレスを入力。</li>
<li>\*\*Kerberos Realm：\*\*Kerberos への認証に使用するKerberos レルムを入力。</li>
<li>\*\*Kerberos SPN：\*\*Kerberos ドメインコントローラーのサービスプリンシパル名（SPN）を入力。</li>
<li>\*\*Kerberos User：\*\*Kerberos ドメインコントローラーのプリンシパル名を入力。この名前は、***Host*/*User*@*Realm*** の形で指定する必要があります。</li>
<li>（オプション）\*\*Kerberos Keytab File：\*\*Kerberos キータブファイルの完全なファイルパスを入力。</li>
<li>（オプション）\*\*Kerberos Ticket Cache：\*\*MIT Kerberos 資格情報キャッシュファイルの完全なファイルパスを入力。</li></ul>

* **Sasl Qop:** Select the quality-of-protection level for the SASL framework.
  * **auth:** Specifies authentication only.
  * **auth-int:** Specifies authentication plus integrity protection.
  * **auth-conf:** Specifies authentication plus integrity and confidentiality protection.

## 接続を完了する

To complete your connection:

1. Specify the following properties:
   * **Port:** Enter the port number for your instance of Spark SQL. The default port value is **10000**.
   * (Optional) **Database:** Enter the name of your Spark SQL database.
2. Define advanced connection settings on the **Advanced** tab. (In most cases, though, you should not need these settings.)
3. Click **Create & Test** to create your connection.

## 詳細について


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.