Updated on 2026-11-06 GMT+08:00

AI DataLake SDK

Introduction to AI DataLake SDK

AI DataLake provides various types of software development kits (SDKs) to simplify the integration development with the AI DataLake service. You can use SDKs to perform operations such as job submission, data querying, and custom function development without needing to manage the underlying details of REST API calls.

AI DataLake SDKs are categorized by language into Python SDK and Java SDK. These SDKs cover various job scenarios for computing engines such as Aura, Ray, and Spark.

This document classifies SDKs by language. You can directly locate the appropriate SDK based on your business's technical stack.

For details about the privacy data processing policies of SDKs, see Huawei Cloud SDK Privacy Statement.

SDK Languages

Language

SDK

Applicable Engines

Applicable Scenarios

Help Documents

Python

UDF SDK

Aura (AuraJobV2)

UDF/UDAF/UDTF registration and management; multi-engine reuse

Catalog SDK

Python

Aura DataFrame SDK

Aura (AuraJobV2)

Python/Notebook interactive data processing; multi-modal data development

Aura DataFrame SDK (Python)

Python

Spark SDK (Python)

Spark (Spark SQL, Spark Job)

Spark SQL queries; Spark batch job submission

Spark SDK (Python)

Java

Spark SDK (Java)

Spark (Spark SQL, Spark Job)

Spark SQL queries; Spark batch job submission; database and table metadata queries

Spark SDK (Java)

SDK Architecture

The AI DataLake SDK system consists of engine-specific SDKs, and cross-engine shared SDKs (three layers).

  • Engine-specific SDKs: Self-developed SDKs for each engine (Aura DataFrame SDK, Ray SDK, and Spark SDK).
  • Cross-engine shared SDKs: Used to register UDFs with LakeFormation and reuse them across multiple engines (UDF SDK).

AI DataLake SDK for UDFs

The UDF SDK provided by AI DataLake is designed for cross-engine reuse of UDFs. You can write a function once using the UDF SDK and register it with the LakeFormation metadata service. This allows the function to be recognized and called by multiple engines, avoiding redundant development across different engines.

Type

Description

Applicable engines

Currently, Aura is supported.

Applicable scenarios

One-time development and multi-engine reuse of UDFs/UDAFs/UDTFs

Implementation mechanism

Function code and metadata are uniformly stored in LakeFormation. Each engine discovers and calls the code and metadata through the metadata service.

Core capabilities

Function registration (create_udf/create_udtf/create_udaf), query, deletion, and Data-Juicer operator adaptation

Engine-specific SDKs

Engine-specific SDKs for Aura, Ray, and Spark are encapsulated based on general-purpose SDKs or REST APIs, making them more user-friendly and simplifying the development process.

SDK

Language

Applicable Endpoint Type

Applicable Scenarios

Core Features

SDK Reference

Aura DataFrame SDK

Python

AuraJobV2

Python/Notebook interactive data processing; multi-modal data development

Pandas-like DataFrame APIs, with results directly returned as Pandas DataFrames.

Supports multi-modal data types (images, videos, audio, and vectors).

Supports a full range of Python UDF capabilities (scalar UDF, class UDF, vectorized UDF, UDTF, and UDAF).

Supports operator-level resource specification configuration, affinity scheduling policies, and performance monitoring.

Aura DataFrame SDK Overview

Spark SDK

Java, Python

Spark SQL, Spark Job

Spark SQL queries and Spark batch job submission

The Java version provides three types of clients: Spark SQL, Spark Job, and metadata query.

The Python version provides a unified client and Builder for chain job construction, supporting job types such as JAR and SQL scripting.

Spark SDK (Python)

More Connections

In addition to SDKs, AI DataLake provides the following connection methods. The difference between SDKs and these connection methods is that SDKs provide encapsulated programming APIs, which are suitable for application integration development. The following methods are used for specific tools or protocol scenarios:

Connection Method

Applicable Engines

Applicable Scenarios

Spark Connect

Spark

Notebook interactive development and PySpark script integration

REST API

All engines

Automated job submission and application integration

DataArts Studio

Aura

Visualized job orchestration and production environment scheduling