This topic describes the resources that you need to prepare and deploy before you can query and analyze data in the new version of Notebook.
Billing
The fees for a workspace are based on the total number of compute units (CUs) used by Airflow instances and Notebook sessions in the workspace. For the unit price, refer to the information on the page when you configure resources.
NoteYou are not charged when you make a purchase. Billing starts when Airflow instances or Notebook sessions consume CUs.
Fees are charged when you purchase an AnalyticDB for MySQL instance. For more information, see Billing.
Prepare an AnalyticDB for MySQL instance and enter a workspace
If you are redirected from the AnalyticDB for MySQL console to a DMS workspace to develop in a Notebook, follow Path 1 to prepare the resources.
To manually add an AnalyticDB for MySQL instance in DMS and then go to a workspace to develop in a Notebook, follow Path 2 to prepare the resources.
If you have been redirected from the AnalyticDB for MySQL console to a DMS workspace or have used the destination instance in a DMS workspace, you can skip the steps for preparing AnalyticDB for MySQL resources.
Path 1: Go to a DMS workspace from the AnalyticDB for MySQL console
Purchase an AnalyticDB for MySQL instance.
Log on to the AnalyticDB for MySQL console.
In the upper-right corner, click Buy Instance.
Configure the parameters and click Buy Now in the lower-right corner. For more information, see Create an Enterprise Edition or Basic Edition cluster.
NoteWhen you configure the virtual private cloud (VPC) parameter, select the same VPC as the workspace.
After the purchase is complete, you can view the new cluster in the Cluster List.
Create a privileged account.
On the Accounts page, click Create Account and configure the required information.

Create a Job resource group and attach an account.
On the page, click Create Resource Group. Configure parameters such as Resource Group Name, Job Type (select Job), and Maximum Clusters. For more information about the parameters, see Create a resource group.
Click OK. The resource group is created.
In the Actions column of the destination resource group, choose and select the Resource Access Management (RAM) user to attach.
In the navigation pane on the left, choose .
On the page that appears, make sure that the following configurations are complete:
Attach the database account that you created to the RAM user that you are currently logged on with.
NoteIf you use an Alibaba Cloud account to access the console, you do not need to perform this operation.
Grant the AliyunADBSparkProcessingDataRole permission to the Alibaba Cloud account that you are currently logged on with.
The current instance has at least one Job resource group.
Configure an OSS bucket to store Spark application logs for the AnalyticDB for MySQL instance.
NoteOn the page, click Log Settings and select a default path or a custom storage path. If you select a custom storage path, you cannot save logs to the root directory of OSS. Make sure that the path contains at least one folder.
Click Go to DMS Workspace.
The page automatically redirects to a DMS workspace. You can then choose whether to create a new workspace.
Path 2: Add an AnalyticDB for MySQL instance in DMS and enter a workspace
Prerequisites
Procedure
- Log on to the DMS console V5.0.
Move the pointer over the
icon in the upper-left corner of the DMS console and choose . NoteIf you use the DMS console in normal mode, choose in the top navigation bar.
On the Instance Management page, click New and configure the parameters.
NoteSet Access mode to Enable.
After the configuration is complete, click Submit.
If you already have a workspace that meets the requirements, you do not need to create a new one. You can simply click the name of the destination workspace.
Create a workspace
If you already have a workspace that meets the requirements, you do not need to create a new one. You can simply click the name of the destination workspace.
The VPC and region of the workspace must be the same as those of the AnalyticDB for MySQL instance.
Click Create Workspace and configure the workspace information.
NoteThe Owner is the administrator of the workspace. You can also change the role types of other members.

Click Confirm.
Configure resources
You can set a CU limit for the workspace. If the CU usage of the workspace exceeds the limit, the resources in the workspace cannot be started.
Click the name of the workspace to enter the workspace.
In the lower-left corner of the page, choose .
Click the Resource Configuration tab.
In the Workspace resource configuration section or on the right side of the page, click Resource Configuration.
In the Resource configuration panel, configure CU configuration.
Click Create and complete the purchase.
Import a data source
If you are redirected from the AnalyticDB for MySQL console to a DMS workspace, DMS has already imported the data source for you by default. You can skip this section.
Click the name of the workspace to enter the workspace. In the data catalog on the left, click the
icon, and then click the
icon.On the Import Data Source page, enter the name or endpoint of the AnalyticDB for MySQL instance to search for the destination instance.

In the Actions column of the destination instance, click Import.
After you click the Import button, wait a moment and then refresh the data catalog to view the data source. If no database information appears after the resource is imported, you can click the
icon to refresh or sync the dictionary.
NoteTo remove the resource from the workspace, click Remove on the Import Data Source page.
> Workspace Management