CData ODBC Driver for ADLS は、 Azure Data Lake Storage データへのリアルタイムアクセスをデータウェアハウスに統合したり、レポートツールに直接統合したりできる標準データベースドライバーです。この記事では、データ・ウェアハウスをバイパスして、操作可能なAzure Data Lake Storage データをOracle Business Intelligence Enterprise Edition (OBIEE) にインポートする方法を説明します。
Informatica PowerCenter などのETL ツールとのODBC 統合に関するナレッジベースもご参照ください。Oracle Warehouse Builder へのETL ソリューションの場合、ドライバーをOracle ODBC Gateway と共に使用してRemote Oracle Database としてAzure Data Lake Storage データにアクセスします。
ODBC Data Source としてAzure Data Lake Storage に接続する
接続プロパティが未設定の場合は、まずODBC DSN(データソース名)で設定します。これはドライバーインストール時の最後の手順にあたります。Microsoft ODBC データソースアドミニストレーターを使ってODBC DSN を作成および設定できます。
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.
DSN を構成する際に、Max Rows 接続プロパティも設定できます。これにより返される行数が制限されるため、レポートやビジュアライゼーションを作成するときのパフォーマンスが向上します。
Azure Data Lake Storage メタデータをインポートする
以下のステップに従って、OBIEE Client Tools を使用してAzure Data Lake Storage メタデータをOBIEE リポジトリにインポートします。その後、Azure Data Lake Storage データをビジネスモデルに統合できます。
「Administration Tool」を開き、「File」->「New Repository」とクリックします。
- 「Connection Type」メニューで「ODBC 3.5」を選択し、「CData DSN」を選択します。
- 「Relational Sources」オプションでインポートするメタデータ型を選択し、Azure Data Lake Storage テーブルを選択します。
これで、Azure Data Lake Storage テーブルを使用してスタースキーマを作成することができます。