Connect to Azure Data Lake Storage (ADLS)
Create a connection to ingest files from Azure Data Lake Storage.
Step 1: In the Data Portal, click Tables and then click Create Table.
Step 2: Select ADLS as the Data Source.
Step 3: Create a New Connection.
Click New Connection. If you want to use an existing connection, select the connection from the list and proceed to Step 5.
Enter a Source Name for the new connection.
Select the Authentication Type from the drop-down list.
Step 4: Configure Connection Parameters
Connecting to ADLS Using the Access Key
Use the following JSON configuration when ADLS is set up with basic authentication using an access key.
Property Descriptions
Property | Required | Description |
---|---|---|
input.fs.className | Yes | The class name of the ADLS Gen2 Pinot file system. |
input.fs.prop.accountName | Yes | The Azure Storage account name used for ADLS Gen2 integration. |
authenticationType | Optional | Set as ACCESS_KEY to use an access key for authentication. |
input.fs.prop.accessKey | Yes | The access key used for authentication when authenticationType is ACCESS_KEY . |
input.fs.prop.fileSystemName | Yes | The name of the file system (container) in the Azure Storage account. |
inputDirURI | Yes | The URI of the input directory in ADLS Gen2 where Pinot reads data. |
Connecting to ADLS Using Azure Active Directory
Use the following JSON configuration when ADLS is set up with Azure Active Directory authentication.
Property Descriptions
Property | Required | Description |
---|---|---|
input.fs.className | Yes | The class name of the ADLS Gen2 Pinot file system. Must be set to org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS for ADLS Gen2 integration. |
input.fs.prop.accountName | Yes | The name of the Azure Storage account to be used for ADLS Gen2 integration. |
authenticationType | Optional | The type of authentication used to access the ADLS storage. Set as AZURE_AD to use Azure Active Directory (AAD) Service Principal for authentication. |
input.fs.prop.clientId | Yes | The Client ID of the Azure Service Principal used for authentication. |
input.fs.prop.clientSecret | Yes | The Client Secret key for the Azure Service Principal. |
input.fs.prop.tenantId | Yes | The Tenant ID associated with the Azure Active Directory (AAD). |
input.fs.prop.fileSystemName | Yes | The name of the file system (container) in the Azure Storage account. |
inputDirURI | Yes | The URI for the input directory in ADLS Gen2 where Pinot reads data. It is generally in the format: abfs://my-container-name@myazure-storage-account.dfs.core.windows.net/data-directory/ . |
Connecting to ADLS Using Azure Active Directory with Proxy
Use the following JSON configuration when ADLS is set up with Azure Active Directory authentication via a proxy server.
Property Descriptions
Property | Required | Description |
---|---|---|
input.fs.className | Yes | The class name of the ADLS Gen2 Pinot file system. Must be set to org.apache.pinot.plugin.filesystem.ADLSGen2PinotFS for ADLS Gen2 integration. |
input.fs.prop.accountName | Yes | The name of the Azure Storage account to be used for ADLS Gen2 integration. |
authenticationType | Optional | The type of authentication used to access the ADLS storage. Set as AZURE_AD_WITH_PROXY to use Azure Active Directory (AAD) Service Principal for authentication via a proxy server. |
input.fs.prop.clientId | Yes | The Client ID of the Azure Service Principal used for authentication. |
input.fs.prop.clientSecret | Yes | The Client Secret key for the Azure Service Principal. |
input.fs.prop.tenantId | Yes | The Tenant ID associated with the Azure Active Directory (AAD). |
input.fs.prop.proxyHost | Yes | The hostname of the proxy server used to connect to ADLS. |
input.fs.prop.proxyPort | Yes | The port number of the proxy server. |
input.fs.prop.proxyUsername | Yes | The username for proxy authentication. |
input.fs.prop.proxyPassword | Yes | The password for proxy authentication. |
input.fs.prop.fileSystemName | Yes | The name of the file system (container) in the Azure Storage account. |
inputDirURI | Yes | The URI for the input directory in ADLS Gen2 where Pinot reads data. It is generally in the format: abfs://my-container-name@myazure-storage-account.dfs.core.windows.net/data-directory/ . |
Step 5: Test the Connection and Configure Data Ingestion
After you have configured the connection properties, test the connection to ensure it is working.
When the connection is successful, use the following JSON to configure additional data settings:
Property Descriptions
Property | Required | Description |
---|---|---|
inputFormat | Yes | The format of the input files. Supported values include csv, json, avro, parquet, etc. |
includeFileNamePattern | Yes | The glob pattern to identify which files to include for ingestion. This is useful when the input directory contains a mix of files, and only specific files should be ingested. |
excludeFileNamePattern | Optional | The glob pattern to identify which files to exclude from ingestion. This is useful when the input directory contains a mix of files, and only specific files should not be ingested. |
Configure Record Reader
Configure the record reader to customize how the file format is read during ingestion.
Step 6: Preview the Data
Click Show Sample Data to preview the source data before finalizing the configuration.
Next Step
Proceed with Data Modeling.