All Products
Search
Document Center

DataWorks:Associate an AnalyticDB for Spark computing resource

Last Updated:Mar 26, 2026

To run AnalyticDB for Spark tasks in DataWorks, bind an AnalyticDB for MySQL cluster as an AnalyticDB for Spark computing resource. Once bound, the computing resource is available for task development in Data Studio.

Prerequisites

Before you begin, make sure you have:

Limitations

Supported regions: China (Hangzhou), China (Shanghai), China (Beijing), China (Shenzhen), China (Hong Kong), Japan (Tokyo), Singapore, Malaysia (Kuala Lumpur), and Indonesia (Jakarta).

Required permissions:

User Required permissions
Alibaba Cloud account No additional authorization required
RAM user/RAM role DataWorks: The O&M or Workspace Administrator role, or the AliyunDataWorksFullAccess permission. See Grant workspace administrator permissions. AnalyticDB for MySQL: The AliyunADBFullAccess policy, required to create a database in the cluster during this process.

Bind an AnalyticDB for Spark computing resource

  1. Log on to the DataWorks console. In the top navigation bar, switch to the target region. In the left navigation pane, choose More > Management Center, then select your workspace and click Go To Management Center.

  2. In the left navigation pane, click Computing Resources.

  3. On the Computing Resources page, click Associate Computing Resource.

  4. On the Associate Computing Resource page, set the computing resource type to AnalyticDB for Spark. The Associate AnalyticDB For Spark Computing Resource configuration page opens.

  5. Configure the computing resource parameters.

    Parameter Description Example
    Configuration Mode Only Alibaba Cloud Instance Pattern is supported. Alibaba Cloud Instance Pattern
    Alibaba Cloud Account Only Current Alibaba Cloud Account is supported. Current Alibaba Cloud Account
    Instance Select the AnalyticDB for MySQL cluster to bind. To create a new cluster, click New in the drop-down menu. The cluster must have an interactive resource group with the engine type set to Spark. my-adb-cluster
    Database Name The name of the database in the AnalyticDB for MySQL cluster. spark_db
    Computing Resource Instance Name A custom name for this computing resource. At runtime, you can select the computing resource for a task based on this name. adb-spark-prod
  6. In the Connection Configuration section, select the resource group that DataWorks uses to run AnalyticDB for Spark tasks, then click Test Network Connectivity to verify that the resource group can reach the cluster. For troubleshooting, see Network connectivity solutions.

  7. Click OK.

The computing resource is now available. DataWorks also automatically syncs a new AnalyticDB for Spark data source with the same name to the Data Sources section of your workspace.

What's next

In Data Studio, use the computing resource you just bound to develop ADB Spark node tasks and ADB Spark SQL node tasks.