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

export const CommonDatasourceCompleteConnectionOauth = ({datasource = "the data source", title = "the connector", oauthschemes = "", start = 2}) => {
  return <ol start={start}>
      <li><strong>Advanced</strong> タブで詳細な接続設定を定義します。（ただし、ほとんどの場合、これらの設定は不要です。）</li>
      <li>{oauthschemes ? <>{oauthschemes} で認証する場合は、</> : <></>}<strong>{datasource} への接続</strong>をクリックして {title} アカウントに接続します。</li>
      <li><strong>作成およびテスト</strong>をクリックして接続を作成します。</li>
    </ol>;
};

export const CommonAuthSchemeLdap = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>LDAP 認証情報で接続するには、次のプロパティを指定します：</p>
      <ul>
        <li><strong>Auth Scheme：</strong><strong>LDAP</strong> を選択。</li>
        <li><strong>User：</strong>{datasource} アカウントへの認証に使用するユーザー名を入力。</li>
        <li><strong>Password：</strong>{datasource} アカウントへの認証に使用するパスワードを入力。</li>
      </ul>
    </>;
};

export const CommonAuthSchemeAwsec2roles = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>
        EC2 インスタンスで{siteName} を実行すると、{siteName} はインスタンスに割り当てられたIAM ロールを使用して認証できます。そのロールを使用するには、<strong>Auth Scheme</strong> で<strong>AwsEC2Roles</strong> を選択します。追加のプロパティは必要ありません。
      </p>
    </>;
};

export const CommonAuthSchemeAwsiamroles = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>IAM ユーザー認証情報で接続するには、次のプロパティを指定します：</p>
      <ul>
        <li><strong>Auth Scheme：</strong><strong>AwsIAMRoles</strong> を選択。</li>
        <li><strong>User：</strong>{datasource} アカウントへの認証に使用するユーザー名を入力。</li>
        <li><strong>AWS Access Key：</strong>Amazon Web Services（AWS）アカウントのアクセスキーを入力。この値は、AWS のセキュリティ認証情報ページで確認できます。</li>
        <li><strong>AWS Secret Key：</strong>AWS アカウントのシークレットキーを入力。この値は、AWS のセキュリティ認証情報ページで確認できます。</li>
        <li><strong>AWS Role ARN：</strong>認証したいロールのAmazon リソースネーム（ARN）を入力。</li>
        <li>（オプション）<strong>AWS External Id：</strong>別のアカウントでロールを引き受ける際に必要となる一意の識別子を入力。</li>
      </ul>
    </>;
};

export const CommonAuthSchemeAzuremsi = ({siteName = "CData Sync"}) => {
  return <>
      <p>
        Azure 仮想マシン上で{siteName} が実行されている場合にAzure マネージドサービスID（MSI）を利用するには、<strong>Auth Scheme</strong> で<strong>Azure MSI</strong> を選択します。追加のプロパティは必要ありません。
      </p>
    </>;
};

export const CommonAuthSchemeAzurepassword = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>Azure パスワードで接続するには、以下を指定します：</p>
      <ul>
        <li><strong>Auth Scheme：</strong><strong>AzurePassword</strong> を選択。</li>
        <li><strong>User：</strong>Azure への認証に使用するユーザー名を入力。</li>
        <li><strong>Password：</strong>Azure への認証に使用するパスワードを入力。</li>
        <li><strong>Azure Tenant：</strong>OAuth およびクライアントアプリケーションが作成されたAzure テナントのId を入力。このId は、いずれかのアプリケーションの<strong>概要</strong>ページの<strong>ディレクトリ (テナント) ID</strong> で確認できます。</li>
      </ul>
    </>;
};

export const CommonAuthSchemeAzuread = ({siteName = "CData Sync"}) => {
  return <>
      <p>
        Azure Active Directory（AD）ユーザーアカウントで接続するには、<strong>Auth Scheme</strong> で<strong>AzureAD</strong> を選択します。{siteName} は、接続するための組み込みOAuth アプリケーションを提供するため、追加のプロパティは必要ありません。
      </p>
    </>;
};

export const CommonAuthSchemeNtlm = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>NTLM ユーザー資格情報で接続するには、次のプロパティを指定します：</p>
      <ul>
        <li><strong>Auth Scheme：</strong><strong>NTLM</strong> を選択。</li>
        <li><strong>User：</strong>{datasource} サーバーへの認証に使用するユーザー名を入力。</li>
        <li><strong>Password：</strong>{datasource} サーバーへの認証に使用するパスワードを入力。</li>
      </ul>
    </>;
};

export const CommonAuthSchemePassword = ({siteName = "CData Sync", siteNameShort = "Sync", datasource = "the data source"}) => {
  return <>
      <p>ユーザー資格情報で接続するには、次のプロパティを設定します：</p>
      <ul>
        <li><strong>Auth Scheme：</strong><strong>Password</strong> を選択。</li>
        <li><strong>User：</strong>{datasource} アカウントへの認証に使用するユーザー名を入力。</li>
        <li><strong>Password：</strong>{datasource} アカウントへの認証に使用するパスワードを入力。</li>
      </ul>
    </>;
};

export const CommonDatasourceAuthenticate = () => {
  return <p>コネクタを追加したら、必要なプロパティを設定します。</p>;
};

export const CommonDatasourceAddConnector = ({datasource = "the data source", title = "the connector", destination = false, siteNameShort = "Sync"}) => {
  return <>
      <p>
        {siteNameShort} で{datasource} のデータを使用できるようにするには、まず以下の手順でコネクタを追加する必要があります：
      </p>
      <ol>
        <li>{siteNameShort} のダッシュボードから<strong>接続</strong>ページを開きます。</li>
        <li><strong>接続を追加</strong>をクリックして<strong>コネクタを選択</strong>ページを開きます。</li>
        <li>
          <strong>{destination ? "同期先" : "データソース"}</strong>タブをクリックして
          <strong>{title}</strong> 行に移動します。
        </li>
        <li>
          行末にある<strong>接続を設定</strong>アイコンをクリックして、<strong>新しい接続</strong>ページを開きます。この操作により、{' '}
          <strong>接続を追加</strong>ダイアログボックスが開きます。
          <br />
          <strong>Note：</strong> <strong>接続を設定</strong>アイコンが表示されない場合は、<strong>コネクタをダウンロード</strong>アイコンをクリックして {title} コネクタをインストールしてください。
        </li>
        <li><strong>接続を追加</strong>ダイアログボックスに接続名を入力します。</li>
        <li><strong>追加</strong>をクリックして、コネクタの<strong>設定</strong>タブを開きます。</li>
      </ol>
      <p>
        新しいコネクタのインストールについての詳細は、{' '}
        <a href="../connections">接続</a>を参照してください。
      </p>
    </>;
};

export const CommonDatasourceIntroDestination = ({datasource = "the data source", siteName = "CData Sync"}) => {
  return <p>
      {siteName} アプリケーションから{datasource} コネクタを使用して、サポートされている任意のデータソースから同期先の{datasource} へデータを移動できます。これを行うには、コネクタを追加し、コネクタへの認証を行い、接続を完了する必要があります。
    </p>;
};

export const driverVersion = "M";

export const siteNameShort = "Sync";

export const siteName = "CData Sync";

export const datasource = "Apache Doris";
export const pageTitle = "Apache Doris";
export const advancedurl = "";
export const oauthschemes = "AzureAD";

<CommonDatasourceIntroDestination datasource="Apache Doris" siteName={siteName} />

## Apache Doris コネクタを追加

<CommonDatasourceAddConnector datasource="Apache Doris" title="Apache Doris" destination={true} siteNameShort={siteNameShort} />

## Apache Doris への認証

<CommonDatasourceAuthenticate datasource="Apache Doris" title="Apache Doris" destination={true} siteNameShort={siteNameShort} />

* **Server：** 接続する MySQL サーバーのホスト名またはIP アドレスを入力します。
* **Port：** MySQL サーバーへの接続に使用するポート番号を入力します。デフォルトポートは **3306** です。

{siteName} は、複数の方法で {datasource} の認証をサポートしています。以下の認証方法を選択して、認証詳細が記載された関連セクションに進んでください。

* [**Password**](#password)（デフォルト）
* [**NTLM**](#ntlm)
* [**Azure Active Directory**](#azure-active-directory)
* [**Azure Password**](#azure-password)
* [**Azure Managed Service Identity**](#azure-managed-service-identity)
* [**AWS IAM Roles**](#aws-iam-roles)
* [**AWS EC2 Roles**](#aws-ec2-roles)
* [**LDAP**](#ldap)

### Password

<CommonAuthSchemePassword siteName={siteName} datasource={datasource} />

### NTLM

<CommonAuthSchemeNtlm siteName={siteName} datasource={datasource} />

<ul style={{marginTop: "-1rem"}}>
  <li>（オプション）<strong>Domain：</strong>NTLM プロトコルを使用した Windows 統合認証を有効にする Microsoft Windows ドメインを入力します。</li>
  <li><strong>NTLM Version：</strong>Windows 資格情報で認証する際に使用する NTLM プロトコルのバージョンを選択します。</li>
</ul>

### Azure Active Directory

Azure Active Directory の資格情報で接続するには、次のプロパティを指定します：

* **Auth Scheme：** **AzureAD** を選択します。
* **User：** {datasource} アカウントへの認証に使用するユーザー名を入力します。
* **Azure Tenant：** 接続する MySQL テナントを入力します。テナントを指定しない場合、{siteName} はデフォルトテナントを使用します。
* **OAuth Client Id：** OAuth 認可サーバーにアプリケーションを登録したときに割り当てられたクライアント ID を入力します。
* **OAuth Client Secret：** OAuth 認可サーバーにアプリケーションを登録したときに割り当てられたクライアントシークレットを入力します。
* **Scope：** アプリケーションへのアクセス範囲を入力します。

### Azure Password

<CommonAuthSchemeAzurepassword siteName={siteName} datasource={datasource} />

<ul style={{marginTop: "-1rem"}}>
  <li><strong>OAuth Client Id：</strong>カスタム OAuth アプリケーションに割り当てられたクライアント ID（コンシューマーキーとも呼ばれます）を入力します。</li>
</ul>

### Azure Managed Service Identity

Azure 仮想マシン上で CData Sync を実行しているときに Azure Managed Service Identity（MSI）を利用するには、Auth Scheme で Azure MSI を選択します。追加のプロパティは必要ありません。

* **Auth Scheme：** **AzureMSI** を選択します。
* **Azure Tenant：** 接続する MySQL テナントを入力します。テナントを指定しない場合、{siteName} はデフォルトテナントを使用します。

### AWS IAM Roles

IAM ユーザーの資格情報で接続するには、次のプロパティを指定します：

* **Auth Scheme：** **AwsIAMRoles** を選択します。
* **AWS Access Key：** Amazon Web Services（AWS）アカウントのアクセスキーを入力します。この値は AWS セキュリティ認証情報ページで確認できます。
* **AWS Secret Key：** AWS アカウントのシークレットキーを入力します。この値は AWS セキュリティ認証情報ページで確認できます。
* **AWS Role ARN：** 認証に使用するロールの Amazon リソースネーム（ARN）を入力します。

### AWS EC2 Roles

<CommonAuthSchemeAwsec2roles siteName={siteName} datasource={datasource} />

### LDAP

<CommonAuthSchemeLdap siteName={siteName} datasource={datasource} />

## 接続を完了する

接続を完了するには：

1. 次のプロパティを指定します：

   * **Database：** 接続する MySQL データベースを入力します。データベースを指定しない場合、Sync はデフォルトデータベースを使用します。
   * **Use SSL：** Secure Sockets Layer（SSL）を有効にするかどうかを選択します。デフォルトでは、**Enable** チェックボックスはオフになっています。

<div style={{marginTop: "-1rem"}}>
  <CommonDatasourceCompleteConnectionOauth datasource={datasource} title={pageTitle} oauthschemes={oauthschemes} />
</div>
