You can create an AnalyticDB for MySQL node in the DataWorks console to build an online extract, transform, and load (ETL) process.

Background information

AnalyticDB for MySQL nodes are used to connect to AnalyticDB for MySQL of Alibaba Cloud. For more information, see AnalyticDB for MySQL documentation.
Note You can run AnalyticDB for MySQL nodes only on exclusive resource groups for scheduling. For more information, see Create and use an exclusive resource group for scheduling.

Procedure

  1. Go to the DataStudio page.
    1. Log on to the DataWorks console.
    2. In the left-side navigation pane, click Workspaces.
    3. In the top navigation bar, select the region in which the workspace that you want to manage resides. Find the workspace and click DataStudio in the Actions column.
  2. Move the pointer over the Create icon and choose Create Node > Custom > AnalyticDB for MySQL.
    Alternatively, you can click the name of the desired workflow in the Business Flow section, right-click UserDefined, and then choose Create Node > AnalyticDB for MySQL.
  3. In the Create Node dialog box, configure the Name and Path parameters.
    Note The node name must be 1 to 128 characters in length and can contain letters, digits, underscores (_), and periods (.).
  4. Click Commit.
  5. Configure the AnalyticDB for MySQL node.
    1. Select a data source.
      Select a data source for the node. If you cannot find the desired data source from the Select Data Source drop-down list, click Add Data Source and add a data source on the Data Source page. For more information, see Supported data source types, readers, and writers. Data source configuration
    2. Write SQL statements for the node.
      After you select a data source, write SQL statements based on the syntax that is supported by AnalyticDB for MySQL. You can write data manipulation language (DML) or data definition language (DDL) statements.
    3. Click the Save icon icon in the toolbar to save the SQL statements to the server.
    4. Click the Run icon icon in the toolbar to execute the SQL statements you have saved.
      When you run the node for the first time, the Parameters dialog box appears. You must select a resource group for running the node from the Scheduling Resource Group drop-down list, set other parameters as required, and then click Confirm.
      When you run the node later, the system uses the resource group and parameter settings that you specify for the first running of the node. If you need to change the resource group or modify the parameter settings, click the Advanced run (run with parameters) icon icon in the toolbar.
      Note To access a data store in a virtual private cloud (VPC), a node must be run on an exclusive resource group for scheduling. In this example, you must select an exclusive resource group for scheduling that is connected to the AnalyticDB for PostgreSQL instance.
  6. On the configuration tab of the node, click Properties in the right-side navigation pane. On the Properties tab, configure scheduling properties for the node. For more information, see Configure basic properties.
    You must select an exclusive resource group for scheduling that is connected to the specific AnalyticDB for MySQL data source to periodically run the node.
  7. Save and commit the node.
    Notice You must configure the Rerun and Parent Nodes parameters on the Properties tab before you commit the node.
    1. Click the Save icon in the top toolbar to save the node.
    2. Click the Submit icon in the toolbar.
    3. In the Commit Node dialog box, configure the Change description parameter.
    4. Click OK.
    If the workspace that you use is in standard mode, you must click Deploy in the upper-right corner to deploy the node after you commit it. For more information, see Deploy nodes.
  8. Perform O&M operations on the node. For more information, see O&M overview of auto triggered nodes.