AnalyticDB for MySQL Writer allows you to build a real-time data warehouse by using the real-time write capability of AnalyticDB for MySQL.

Prerequisites

A reader or conversion node is configured. For more information, see Plug-ins for data sources that support real-time synchronization.

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 then click Data Development in the Actions column.
  2. In the Scheduled Workflow pane of the DataStudio page, move the pointer over the Create icon and choose Data Integration > Real-time synchronization.
    Alternatively, click the required workflow, right-click Data Integration, and then choose Create > Real-time synchronization.
  3. Click Commit.
  4. On the configuration tab of the real-time synchronization node, drag AnalyticDB MySQL 3.0 in the Output section to the canvas on the right. Connect the AnalyticDB for MySQL node and the configured reader or conversion node.
  5. Click the AnalyticDB for MySQL node. In the panel that appears, configure the parameters.
    Parameter Description
    Data source The AnalyticDB for MySQL data source that you have configured. You can select only an AnalyticDB for MySQL data source.

    If no data source is available, click New data source on the right to add a data source. For more information, see Add an AnalyticDB for MySQL 3.0 data source.

    Table The name of the AnalyticDB for MySQL table to which you want to write data.

    You can click One-Click table creation on the right to create a table, or click Data preview to preview the selected table.

    Write Mode The write mode. The only value Replay is displayed. This value indicates that data is updated by row.
    Field Mapping The field mappings between the source and destination. Click Field Mapping to configure field mappings. The synchronization node synchronizes data based on the field mappings.
  6. Click Save in the top toolbar to save the node.