製品をチェック

無償トライアル:

無償トライアルへ

製品の情報と無償トライアルへ:

Azure Data Lake Storage ODBC Driver

Azure Data Lake Storage ODBC Driver を使って、ODBC 接続をサポートするあらゆるアプリケーション・ツールからAzure Data Lake Storage にデータ連携。

Azure Data Lake Storage にデータベースと同感覚でアクセスして、Azure Data Lake Storage データに使い慣れたODBC インターフェースで連携。

データ連携でお困りですか?

お問い合わせ

Microsoft Power Query からAzure Data Lake Storage データに連携して利用


CData Azure Data Lake Storage ODBC Driver はMicrosoft Power Query で使用できます。この記事ではODBC Driver を使ってAzure Data Lake Storage データをMicrosoft Power Query にインポートする方法を紹介します。


古川えりか
コンテンツスペシャリスト

azuredatalake ロゴ画像

ODBC Driver

odbc ロゴ画像
Excel ロゴ画像

CData ODBC Driver for ADLS を使ってMicrosoft Power Query からAzure Data Lake Storage に接続すれば、お好みのAzure Data Lake Storage データを取得できます。この記事では、ODBC Driver を使ってAzure Data Lake Storage をMicrosoft Power Query にインポートする方法について詳しく説明します。

Azure Data Lake Storage への接続の設定

  1. まずは、本記事右側のサイドバーからADLS ODBC Driver の無償トライアルをダウンロード・インストールしてください。ODBC ドライバーのインストール完了時にODBC DSN 設定画面が立ち上がります。または、Microsoft 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:

    1. Sign in to your Azure Account through the .
    2. Select "Azure Active Directory".
    3. Select "App registrations".
    4. Select "New application registration".
    5. Provide a name and URL for the application. Select Web app for the type of application you want to create.
    6. 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.
    7. 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.

    一般的な接続文字列は次のとおりです:

    Schema=ADLSGen2;Account=myAccount;FileSystem=myFileSystem;AccessKey=myAccessKey;

Microsoft Power Query でAzure Data Lake Storage データをインポート

ODBC 側の設定が完了したら、Excel からPower Query を起動して実際にデータを取得していきます。

  1. Excel のリボンから「データ」->「データの取得」-「Power Query の起動」をクリックします。
  2. Power Query エディター画面が開くので、「新しいクエリ」->「新しいソース」->「その他ソース」->「ODBC」をクリックします。
  3. 使用するデータソースを選択します。
  4. 詳細クエリで、カスタムデータをインポートするSELECT 文(SQL)を入力することもできます。例: SELECT * FROM Resources ODBC 接続文字列とSELECT 文。
  5. 必要に応じてクレデンシャル情報を入力し、「接続」をクリックします。ナビゲータが開くので、ツリー形式で表示されるテーブルから使用するテーブルを選択します。プレビューにデータが表示されます。OK を押します。データがクエリビューに表示されます。別のデータソースからクエリを結合、または「Power Query formulas」を使ってデータをリファインできます。ワークシートにクエリをロードするには、[閉じて読み込む]ボタンをクリックします。
  6. Power Query で取得したテーブル。

おわりに

このようにCData ODBC Drivers と併用することで、270を超えるSaaS、NoSQL データをPower Query から扱うことができます。30日の無償評価版が利用できますので、ぜひ自社で使っているクラウドサービスやNoSQL と合わせて活用してみてください。