Ready to get started?

Learn more about the CData FireDAC Components for Azure Data Lake Storage or download a free trial:

Download Now

Viewing Azure Data Lake Storage Data in RAD Studio Data Explorer

How to view Azure Data Lake Storage data in RAD Studio Data Explorer using the CData FireDAC Components for Azure Data Lake Storage.

Embarcadero RAD Studio provides a development environment for Delphi and C++Builder applications. With the CData FireDAC Components for Azure Data Lake Storage, you gain access to live Azure Data Lake Storage data within RAD Studio, abstracting the data into tables, views, and stored procedures that can be used to both retrieve Azure Data Lake Storage data. This article will walk through connecting to Azure Data Lake Storage using the Data Explorer.

Connecting to Azure Data Lake Storage Data Using Data Explorer

You can create a simple application for displaying Azure Data Lake Storage data by utilizing the CData FireDAC Components for Azure Data Lake Storage and a new VCL Forms Application:

  1. Open the Data Explorer in RAD Studio and expand FireDAC.
  2. Right-click on CData Azure Data Lake Storage Data Source and click Add New Connection.

  3. Name the connection.
  4. Fill in the necessary connection parameters and click OK.

    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.

  5. Back in the Data Explorer, expand the views for the connection.
  6. Create a new VCL Forms application and drag a view (for example: Resources) onto the form.

  7. Select the ResourcesView object on the form and set the Active property to true.
  8. Right-click on the object, bind visually, and link everything (*) to a new control (TStringGrid).

  9. Arrange the TStringGrid on the form and run the application to see the Resources data.