> ## 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

You can use the Spark SQL connector from the CData Sync application to capture data
from Spark SQL and move it to any supported destination. To do so, you need to add
the connector, authenticate to the connector, and complete your connection.

## Add the Spark SQL Connector

To enable Sync to use data from Spark SQL, you first must add the
connector, as follows:

<ol>
  <li>Open the **Connections** page of the Sync dashboard.</li>
  <li>Click **Add Connection** to open the **Select Connectors** page.</li>
  <li>Click the **Sources** tab and locate
  the **Spark SQL** row.</li>

  <li>
    Click the **Configure Connection** icon at the end of that row to open
    the **New Connection** page. This action opens the
    **Add Connection** dialog.

    **Note:** If the **Configure Connection** icon is not
    available, click the **Download Connector** icon to install
    the Spark SQL connector.
  </li>

  <li>Enter a name for your connection in the **Add Connection** dialog.</li>
  <li>Click **Add** to open the **Settings** tab for your connector.</li>
</ol>

For more information about installing new connectors, see
[Connections](https://docs.sync.cdata.com/26.4/en/connections/connections.md).

## Authenticate to 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

To connect with a plain-text login, specify these properties:

<ul><li>**Auth Scheme:** Select **Plain**.</li>
<li>**User:** Enter the username that you use to authenticate to your Spark SQL account.</li>
<li>**Password:** Enter the password that you use to authenticate to your Spark SQL account.</li></ul>

### NOSASL

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

### LDAP

To connect with LDAP credentials, specify the following properties:

<ul><li>**Auth Scheme:** Select **LDAP**.</li>
<li>**User:** Enter the username that you use to authenticate to your Spark SQL account.</li>
<li>**Password:** Enter the password that you use to authenticate to your Spark SQL account.</li></ul>

### Kerberos

To connect with Kerberos, specify these settings:

<ul><li>**Auth Scheme:** Select **Kerberos**.</li>
<li>**User:** Enter the username that you use to authenticate to your Spark SQL account.</li>
<li>**Password:** Enter the password that you use to authenticate to your Spark SQL account.</li>
<li>**Kerberos KDC:** Enter the host name or IP address of your Kerberos Key Distribution Center (KDC) machine.</li>
<li>**Kerberos Realm:** Enter the Kerberos realm that you use to authenticate to Kerberos.</li>
<li>**Kerberos SPN:** Enter the service principal name (SPN) for the Kerberos domain controller.</li>
<li>**Kerberos User:** Enter the principal name for the Kerberos Domain Controller. The name should be in the form ***Host*/*User*@*Realm***.</li>
<li>(Optional) **Kerberos Keytab File:** Enter the full file path to your Kerberos keytab file.</li>
<li>(Optional) **Kerberos Ticket Cache:** Enter the full file path to an MIT Kerberos credential cache file.</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.

## Complete Your Connection

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.

## More Information

For more information about interactions between CData Sync and Spark SQL, see
[Spark SQL Connector for CData Sync](https://cdn.cdata.com/help/ESN/synch/default.htm).


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