CData Driver for ADLS を使って、国産BIツールのActionista!(https://www.justsystems.com/jp/products/actionista/) からAzure Data Lake Storage データをノーコードで連携して利用できます。この記事では、間にETL/EAI ツールをはさむ方法ではなく、CData JDBC Driver for ADLS をActionista! 側に組み込むだけで連携を実現できます。
Actionista! からAzure Data Lake Storage データへの連携を設定
CData JDBC Driver for ADLS をActionista! に配置
- CData JDBC Driver for ADLS をActionista! と同じマシンにインストールします。
-
次にインストールした.jar ファイルを以下のパスに格納します:
ドライバー.jar ファイルのディレクトリ C:\Program Files\CData\CData JDBC Driver for ADLS 2019J\lib\cdata.jdbc.adls.jar
Actionista! 側のコピー先ディレクトリ C:\JUST\JustBI\jdbc
- 次に、C:\JUST\JustBI\conf にあるdatamanager.properties プロパティファイルに今回使用するAzure Data Lake Storage のドライバークラスなどを以下のように指定します:
# ADLS
loader.jdbc.displayName.ADLS = ADLS
loader.jdbc.initJdbcUrl.ADLS = jdbc:adls:
loader.jdbc.url.ADLS = jdbc:adls:
loader.jdbc.driver.ADLS = cdata.jdbc.adls.ADLSDriver
loader.jdbc.dbmsInfo.ADLS = cdata.jdbc.adls.ADLSDriver
これでActionista! へのドライバーの配置が完了しました。
Azure Data Lake Storage データをActionista! のキューブに取り込み
Actionista! ではデータの保持をキューブという単位で保存します。また、クエリでデータソースからデータを取得するのではなく、キューブに対してクエリを行います。このステップでは、Azure Data Lake Storage データをキューブに取り込み、分析で使えるようにします。
- Actionista! にログインします。
- 「DataManager」-> 「+キューブの新規作成」をクリックします。
- CData JDBC Driver はRDB データソースとしてActionista! から利用できるので、「RDB」を選択します。
- 設定情報にAzure Data Lake Storage への接続に必要なプロパティを入れます:
- RDB の種類:には、上のステップでdisplayName で指定した名前をドロップダウンで選びます。
- 接続URL: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.
jdbc:adls:Schema=ADLSGen2;Account=myAccount;FileSystem=myFileSystem;AccessKey=myAccessKey;InitiateOAuth=REFRESH
- ユーザー名:接続するアカウントのユーザー名(URL に含めることも可)
- パスワード:接続するアカウントのパスワード(URL に含めることも可)
- 「接続」ボタンを押してAzure Data Lake Storage に接続します。
- Azure Data Lake Storage への接続が完了すると、JDBC Driver がAzure Data Lake Storage のスキーマを取得して、テーブル・ビューをプルダウンメニューに表示します。分析キューブで使用するテーブル・ビューを選択して、OK ボタンを押します。
- 選択したオブジェクトのカラムが表示されます。JDBC Driver は、Azure Data Lake Storage データのスキーマを検出してActionista! に渡すので、カラム名だけでなく、データ型の推定がすでになされています。ここで細かい型修正やデータの抽出条件を必要があれば設定して保存します。
- データマネージャー画面でAzure Data Lake Storage データを選択して、「+取り込み」ボタンを押すとデータがキューブに保存されます。これでキューブへのデータ登録が完了です。
Actionista! 上にAzure Data Lake Storage データのダッシュボードを作成する
それでは簡単なダッシュボードを作成していきます。
- 「Dashboard」-> 「ダッシュボードの新規作成」-> 「キューブから作成」をクリックします。
- 先ほど作成したAzure Data Lake Storage データのキューブを選択して、ダッシュボード名を任意で入力して、OK を押します。
- 左側にある明細パネルを右側のエリアにドラッグ&ドロップしますと、明細パネルの作成ウィンドウが表示されるので、Azure Data Lake Storage キューブから表示させる項目を選択します。
- そのままキューブのデータが表示することができます。ドリルダウンなどを行いたい場合は、サイドメニューにある分析パネルで作成してください。
CData JDBC Driver for ADLS をActionista! で使うことで、ノーコードでAzure Data Lake Storage データをビジュアライズできました。ぜひ、30日の無償評価版をお試しください。