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

Spark Engine Endpoint Overview

What Is an Endpoint?

In AI DataLake, an endpoint is the entry point for interacting with engines and compute resources. It associates compute engines with compute resources, so that submitted jobs can access the engines and use the compute resources of AI DataLake.

Advantages of endpoints:

  • Automatic binding of engines and compute resource pools: When you create an endpoint, AI DataLake automatically binds engines to compute resource pools. When submitting jobs, you do not need to configure mappings between jobs, engines, and resources.
  • Flexible configuration of compute resources allocated to endpoints: When creating an endpoint, you can configure compute specifications for the resource pool based on service requirements. You can set the minimum and maximum resource quotas allocated to the endpoint.

Figure 1 illustrates how AI DataLake endpoints work.

  • Jobs interact exclusively with endpoints, hiding the complexity of underlying engines and resources.
  • Each endpoint is automatically associated with a compute engine (Aura, Ray, Spark, or Flink) and compute resources (CPUs, GPUs, and NPUs).
  • Compute resource specifications for endpoints can be flexibly configured without restarting or reconfiguring running jobs.
    Figure 1 How AI DataLake endpoints work

Spark Engine Endpoint Types

The Spark engine supports two endpoint types to meet distinct data processing requirements:
  • SparkSQL endpoint

    SparkSQL endpoints are interactive SQL endpoints provided by the Spark engine that allow you to filter, aggregate, and compute data using SQL statements. They are ideal for interactive scenarios such as data queries, data analysis, ad hoc queries, and data exploration. When executing SQL statements, these endpoints access LakeFormation resources as the current user (an IAM user with policy-assigned permissions). They support three resource allocation modes—reserved, hybrid, and on-demand—and provide Query Profiles for analyzing query performance.

  • SparkJob endpoint

    SparkJob endpoints are batch processing endpoints provided by the Spark engine for large-scale data transformation and complex processing. They are well suited for batch processing scenarios such as ETL jobs, machine learning model training, and large-scale data transformation. When running jobs, these endpoints access LakeFormation resources using the agency configured for the endpoint. They allow you to view submission logs and support three resource allocation modes: reserved, hybrid, and on-demand.

Resource Allocation Modes for the Spark Engine

The Spark engine supports three resource allocation modes: reserved, hybrid, and on-demand. You can select the optimal mode based on your workload characteristics to optimize costs and balance resource performance.

Table 1 Resource allocation modes supported by the Spark engine

Endpoint Type

Resource Allocation

Description

Related Link

  • SparkSQL
  • SparkJob

Reserved

Provides exclusive performance and optimal cost-effectiveness. Reserved resources with the lowest unit prices ensure stable baseline performance. This mode is best for steady workloads.

Resource Allocation: Reserved Resources

Hybrid

Provides baseline stability and automatic scaling. Reserved resources are used first, and auto scaling is triggered automatically during peak hours. This mode is best for workloads with predictable fluctuations.

Resource Allocation: Hybrid Mode

On-demand

Charges you based on the actual time taken to execute each task. No costs are incurred when no tasks are running. This mode is well-suited for short-term or ad-hoc tasks, including development, testing, and temporary projects.

Resource Allocation: On-demand Mode