ballerinax/azure.datalake Ballerina library

1.5.1

Overview

This is a generated connector for Azure DataLake Storage (Gen2) API version 2019-10-31 OpenAPI specification.

Azure Data Lake Storage provides storage for Hadoop and other big data workloads.

Prerequisites

  • Create an Azure account
  • Create an Azure Data Lake Storage(Gen2) account
  • Obtain tokens
    • Use this guide to obtain the credentials which are needed to create the <CLIENT_ID> and <CLIENT_SECRET>

Quickstart

To use the Azure Data Lake Storage connector in your Ballerina application, update the .bal file as follows:

Step 1 - Import connector

First, import the ballerinax/azure.datalake module into the Ballerina project.

Copy
import ballerinax/azure.datalake;

Step 2 - Create a new connector instance

You can now make the connection configuration using the access token.

Copy
datalake:ClientConfig clientConfig = {
    auth : {
        token: token
    }
};

datalake:Client baseClient = check new Client(clientConfig, serviceUrl = "https://{accountName}.{dnsSuffix}");

Step 3 - Invoke connector operation

  1. List file systems
Copy
public function main() {
    datalake:FilesystemList|error fileSystemList = baseClient->filesystemList("account");
    if (fileSystemList is datalake:FilesystemList) {
        log:printInfo("Filesyatem List " + fileSystemList.toString());
    } else {
        log:printInfo("Error Occured");
    }
}
  1. Use bal run command to compile and run the Ballerina program

Import

import ballerinax/azure.datalake;Copy

Metadata

Released date: 12 months ago

Version: 1.5.1

License: Apache-2.0


Compatibility

Platform: any

Ballerina version: 2201.4.1

GraalVM compatible: Yes


Pull count

Total: 5

Current verison: 0


Weekly downloads


Source repository


Keywords

Business Intelligence/Analytics

Cost/Paid

Vendor/Microsoft


Contributors

Other versions

See more...