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

# Apache Phoenix

You can use the Apache Phoenix connector from the CData Sync application to capture data
from Apache Phoenix 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 Apache Phoenix Connector

To enable Sync to use data from Apache Phoenix, 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 **Apache Phoenix** 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 Apache Phoenix 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).

## Start the Apache Phoenix Query Server

Before you connect, you need to ensure that the Apache Phoenix Query Server is running. Different versions of the server contain different interfaces, different means of starting and stopping the server, and different default port settings. In most distributions, you can start the server in the background by submitting the following command:

`queryserver.py start`

This method requires that you are running an instance of Apache HBase and, possibly, Apache ZooKeeper as well. For more details, see the documentation for your server version.

## Authenticate to Apache Phoenix

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

**URL:** Enter the URL to your instance of Apache Phoenix (for example, [http://localhost:8765](http://localhost:8765)).

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

* [**None**](#none)
* [**Basic**](#basic) (default)
* [**Negotiate**](#negotiate)
* [**Azure HDInsight**](#azure-hdinsight)

### None

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

### Basic

To connect with your user credentials, set the following properties:

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

### Negotiate

To connect with Kerberos credentials, specify the following properties:

<ul><li>**Auth Scheme:** Select **Negotiate**.</li>
<li>**Kerberos KDC:** Enter the Kerberos Key Distribution Center (KDC) service that you use to authenticate.</li>
<li>**Kerberos Realm:** Enter the Kerberos realm that you use to authenticate.</li>
<li>**Kerberos SPN:** Enter the service principal name (SPN) for the Kerberos domain controller.</li>
<li>(Optional) **Kerberos Keytab File:** Enter the path to the keytab file that contains your pairs of the Kerberos principals and encrypted keys.</li>
<li>(Optional) **Kerberos Ticket Cache:** Enter the full path to an MIT Kerberos credential cache file. Sync uses the specified cache file to obtain the Kerberos ticket that is required to connect to Apache Phoenix.</li></ul>

### Azure HDInsight

To connect with Azure HDInsight, specify the following properties:

* **Auth Scheme:** Select **AzureHDInsight**.
* **User:** Enter the username that you use to authenticate to your Apache Phoenix account.
* **Password:** Enter the password that you use to authenticate to your Apache Phoenix account.
* **Cluster Name:** Enter the name of the cluster that contains your Azure HDInsight instance.

## Complete Your Connection

To complete your connection:

1. For **Version** (optional), enter the version of your Apache Phoenix instance. The default version is **4.9.0**.
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 Apache Phoenix, see
[Apache Phoenix Connector for CData Sync](https://cdn.cdata.com/help/UAN/synch/default.htm).


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