A workspace is the basic unit in EMR Serverless Spark for managing jobs, members, roles, and permissions. All configurations, jobs, and workflows run within a specific workspace. Administrators can add members and assign roles such as workspace administrator, data analyst, data developer, or guest for role-based collaboration.
Prerequisites
You have registered an Alibaba Cloud account and completed real-name verification.
You must have an account with the permissions required to create a workspace:
If you use your Alibaba Cloud account, see Assign roles to an Alibaba Cloud account for authorization details.
If you use a RAM user or a RAM role, ensure that the AliyunEMRServerlessSparkFullAccess, AliyunOSSFullAccess, and AliyunDLFFullAccess access policies are attached to the RAM user or RAM role. Then, on the Access Control page, add the RAM user or RAM role and grant it the administrator role. For more information, see Grant permissions to a RAM user and Manage users and roles.
Data Lake Formation (DLF) is activated. For more information, see Quick Start. For a list of regions that support DLF, see Regions and endpoints.
Object Storage Service (OSS) is activated and a bucket is created. For more information, see Activate OSS and Create a bucket.
Create a workspace
-
Go to the EMR Serverless Spark workspace page.
-
Log on to the E-MapReduce console.
-
In the left-side navigation pane, choose EMR Serverless > Spark.
-
-
On the Spark page, click Create Workspace.
-
In the Create Workspace dialog box, configure the following parameters.
Parameter
Description
Region
Select the region where your data resides. The region cannot be changed after creation.
Billing Method
The supported billing methods are Subscription and Pay-as-you-go.
ImportantOnly Pay-as-you-go workspaces can be created in the China (Zhangjiakou) region.
Workspace Name
The name must be 1 to 64 characters long and can contain only Chinese characters, letters, digits, hyphens (-), and underscores (_).
NoteIf you enter a name that is already in use, the system prompts you to provide a different one.
Maximum Quota
Maximum compute units (CUs) available for concurrent job execution in the workspace.
Workspace Directory
Stores data files such as job logs, runtime events, and resources. For near-real-time incremental log viewing during O&M, select an OSS-HDFS-enabled bucket.
DLF for Metadata Storage
Stores and manages metadata. Select the data catalog to associate with the workspace. To create a data catalog:
-
Click Create Catalog. In the dialog box that appears, enter a Catalog Name and click OK.
-
From the drop-down list, select the data catalog that you created.
NoteAfter creating a workspace, you can add an existing DLF data catalog. Data catalog.
Execution Role
Specifies the role that Serverless Spark assumes to run jobs. The default role is AliyunEMRSparkJobRunDefaultRole.
Serverless Spark uses this role to access your resources in other services, such as OSS and DLF. If you want to control the permissions of the execution role, you can use a custom execution role. For more information, see Execution role.
Advanced Settings
Tags: Tags are identifiers for your cloud resources. You can use tags to classify, search for, and aggregate resources that share the same characteristics, which improves resource management efficiency. You can bind up to 20 tags to each workspace. Each tag consists of a custom tag key and tag value. Tags also enable cost allocation and fine-grained management of pay-as-you-go resources.
You can bind tags when you create a workspace, or add or modify tags at any time on the workspace list page. Binding tags to resources helps you classify them and optimize operations.
-
-
Click Create Workspace.
Delete a workspace
-
Deletion fails if jobs are running in the workspace. Stop all running jobs first.
-
After deletion, all resources including job definitions are released and cannot be recovered. Back up your job scripts before deleting.
-
Deleting a workspace does not delete associated data, such as logs on OSS or OSS-HDFS.
Deletion steps vary by billing method:
-
Subscription: Unsubscribe from the quota order first. The workspace is deleted after unsubscription. Unsubscription and refunds.
-
Pay-as-you-go:
-
On the Spark page, click Delete in the Actions column for the workspace.
-
In the dialog box, enter the workspace name for confirmation and click OK.
-
Adjust the subscription quota
For subscription workspaces, you can upgrade or downgrade the CU quota.
-
On the Spark page, choose or Downgrade Subscription Quota in the Actions column for the workspace.
-
On the EMR Serverless Spark Reserved Resources | Change Specification page, adjust the CU Quota parameter. The price difference is calculated automatically.
-
Confirm the configuration and click Buy Now.
Modify the pay-as-you-go quota
-
On the Spark page, choose in the Actions column for the workspace.
-
In the dialog box that appears, adjust the Maximum Pay-as-you-go Quota (CUs) and click OK.
The quota range is from max(25, total allocated pay-as-you-go quota in the workspace) to 5,000 CUs.
Related documents
-
Add RAM users and assign roles for collaborative development through the Access Control feature. Manage users and roles.
-
Isolate and manage resources by adding queues. Manage resource queues.
> Upgrade Subscription Quota
> Modify Pay-as-you-go Quota