Tableau は企業がデータを使用して問題を解決する方法を変革するビジュアル分析プラットフォームです。CData Connect (またはConnect Server)と組み合わせることで、Tableau 内のライブAzure Data Lake Storage データに簡単にアクセスできます。この記事では、Azure Data Lake Storage の仮想MySQL データベースを作成し、Tableau でその仮想データベースに接続して、簡単なチャートを作成する方法を説明します。
Azure Data Lake Storage データの仮想MySQL データベース
CData Connect は、シンプルなポイントアンドクリックインターフェースを使用してデータソースに接続し、API を生成します。
- Connect にログインし、「CONNECTIONS」をクリックします。
- [Available Data Sources]から[Azure Data Lake Storage]を選択します。
-
Azure Data Lake Storage に接続するために必要な認証プロパティを入力します。
Authenticating to a Gen 1 DataLakeStore Account
Gen 1 uses OAuth 2.0 in Azure AD for authentication.
For this, an Active Directory web application is required. You can create one as follows:
- Sign in to your Azure Account through the
[.
]- Select "Azure Active Directory".
- Select "App registrations".
- Select "New application registration".
- Provide a name and URL for the application. Select Web app for the type of application you want to create.
- Select "Required permissions" and change the required permissions for this app. At a minimum, "Azure Data Lake" and "Windows Azure Service Management API" are required.
- Select "Key" and generate a new key. Add a description, a duration, and take note of the generated key. You won't be able to see it again.
To authenticate against a Gen 1 DataLakeStore account, the following properties are required:
- Schema: Set this to ADLSGen1.
- Account: Set this to the name of the account.
- OAuthClientId: Set this to the application Id of the app you created.
- OAuthClientSecret: Set this to the key generated for the app you created.
- TenantId: Set this to the tenant Id. See the property for more information on how to acquire this.
- Directory: Set this to the path which will be used to store the replicated file. If not specified, the root directory will be used.
Authenticating to a Gen 2 DataLakeStore Account
To authenticate against a Gen 2 DataLakeStore account, the following properties are required:
- Schema: Set this to ADLSGen2.
- Account: Set this to the name of the account.
- FileSystem: Set this to the file system which will be used for this account.
- AccessKey: Set this to the access key which will be used to authenticate the calls to the API. See the property for more information on how to acquire this.
- Directory: Set this to the path which will be used to store the replicated file. If not specified, the root directory will be used.
- [ Test Database]をクリックします。
- [Permission]->[ Add]とクリックし、適切な権限を持つ新しいユーザー(または既存のユーザー) を追加します。
仮想データベースが作成されたら、Tableau Desktop からAzure Data Lake Storage に接続できるようになります。
Tableau Desktop でライブAzure Data Lake Storage データをビジュアライズ
以下のステップでは、CData Connect で仮想Azure Data Lake Storage データベースに接続し、データから簡単なビジュアライゼーションを構築する方法の概要を説明します。
- Tableau を開き、[Connect]->[To a Server]と進んだ先の[MySQL]をクリックします。
- 接続ウィザードで、CData Connect インスタンスの値を入力し、[Sign In]をクリックします。
- Server:Connect インスタンスのアドレス
- Port:Connect インスタンス用のMySQL エンドポイントのポート(デフォルト:8006)
- Database:Azure Data Lake Storage データ用に構成した仮想データベース
- Username & Password:CData Connect ユーザーの資格情報
- 新しく作成したデータベースと、ビジュアライズするテーブルを選択します。(必要に応じて結合されたテーブルの関係を定義します。)
- [Dimensions and Measures]を選択して、ビジュアライゼーションを構成します。
オンプレミスのアプリケーションからAzure Data Lake Storage データへのSQL アクセス
この時点で、Tableau Desktop ワークブックからライブAzure Data Lake Storage への、直接接続が有効になります。新しいビジュアライゼーションの作成やダッシュボードの構築などを行うことができます。Tableau などのデスクトップアプリケーションから、240 以上のSaaS、Big Data、NoSQL ソース(Azure Data Lake Storage を含む)のデータにSQL でアクセスする方法については、CData Connect ページを参照するか、無料トライアルをダウンロードしてください。