Compute node configuration

Updated at:

A compute node is an algorithm node that executes code to process data. It is used in an algorithm flow for a specific scenario or to process the logic for a table. This topic describes how to configure compute nodes on the node canvas and the scenario canvas.

Background information

Compute nodes support multiple types, but their configuration parameters and methods are similar. This topic describes only the key parameters. The supported compute node types include the following: MaxCompute SQL, MaxCompute MR, RDS Mysql, SQL Server, Oracle, Hive, Hadoop, DataHub, Elastic Job, Elastic Service, Blink, Blink DataStream, Flink DataStream, PostgreSQL, GreenPlum, AnalyticDB PostgreSQL, AnalyticDB Postgre STREAM SQL, Flink Vvp SQL, Flink Vvp Stream, Flink Vvr SQL, Flink Vvr Stream, Spark Batch, Spark Stream, Spark SQL, and FUSION_NODE.

Node canvas configuration

Node properties

The properties of different compute node types vary. This section describes only the key parameters. For more information about the configuration parameters of different types of public nodes, see the topics from Add a public node of the MaxCompute SQL type to Add a public node of the Spark Stream type.

Parameter

Description

Node Name

The name of the node. You can specify a custom name.

Node ID

The unique ID of the node. You can specify a custom ID. The ID must be unique within the same workspace group.

Node Type

The type of the node.

Version Guide

The version description of the node. You can specify a custom description.

Node Description

A description of the node to help users understand and find it.

Job Type

Includes SQL and algorithm package types.

Modality

The modality of the node. It is used to identify the actual runtime environment of the node. You can quickly switch to a different modality or create a new one. This parameter is displayed only when the node is a FUSION_NODE.

Runtime configuration

You can configure the input, output, and node variable parameters for each type of compute node. Some node types support automatic parsing of these parameters. For other node types, you must add the parameters manually.

Note

If the 解析 (Parse) icon in the toolbar is active after you enter an algorithm statement on the canvas, the system can automatically parse the input, output, and runtime parameters for the node.

Parameter

Description

Compute engine

Development

The compute resource for the development environment.

Production

The compute resource for the production environment.

Resource group

A resource group is a resource pool for publishing tasks. After you set this parameter, you can view the development and production resource groups to which the public node belongs. To configure resource groups, go to System Settings > Resource Group Management.

Dependent Nodes

Upstream

Note

View information about the nodes that the current node depends on.

Parse Dependencies

After you configure the node input, click Parse Dependencies to automatically parse the dependent nodes. The dependency information is then displayed in the Dependent Nodes section of the Runtime configuration tab on the scenario canvas.

Node

The name of the dependent node.

Workspace Group

The workspace where the dependent node resides.

Scenario/Workflow

The name and ID of the scenario or workflow to which the dependent node belongs.

Dependency

The type of the dependency node.

  • Strong dependency: If a dependent node fails to run, scheduling is blocked. The current node cannot be executed and waits for the dependent node to run successfully.

  • Weak dependency: If a dependent node fails to run, scheduling is not blocked. The current node continues to be triggered for execution as planned.

Downstream

Note

On the Downstream Nodes tab, view which nodes or tasks depend on the current node. This shows information about other nodes that depend on the current node. No configuration is required.

Node

The name of the node that depends on the current node.

Workgroup

The workspace group to which the other node that depends on the current node belongs.

Scenario/Workflow

The name and ID of the scenario and workflow to which the other node that depends on the current node belongs.

Node Variables

Variable Name

The name of the variable.

Variable Value

The value of the variable. The value must be a string.

Description

A description of the variable.

Node Inputs

Input ID

The ID of the node's input parameter.

Input Data Structure

The data format of the input table. It is defined by a data model and selected from a drop-down list. It represents the structure of the data table that provides data in the compute resource.

  • If you select a data table, ensure that the input data model is the same as the output data model of the ancestor node. You can specify a custom name for the physical table.

  • If you select an asterisk (*), the data structure can be of any type. This is used for operations on tables for which no data model has been created. In this case, you must select an existing physical table.

Development Environment

Physical Table Resource

The resource where the physical table used for node input in the development environment is located.

Physical Table Name

The name of the physical table for the node's input parameter in the development environment. You can create a new physical table or select an existing one from the resource library.

  • If the input data structure is an asterisk (*), you must select an existing physical table.

  • If the input data structure is a specific model structure, enter a name for the physical table. The system automatically materializes the table.

  • If the Depend on Upstream switch is on and the input parameter of this node is connected to the output parameter of an ancestor node, the physical table for this node's input depends on the ancestor's output. It becomes the output physical table of the ancestor node and cannot be manually modified.

Production Environment

Physical Table Resource

The resource where the physical table used for node input in the production environment is located.

Physical Table Name

The name of the physical table for the node's input in the production environment. You can create a new physical table or select an existing one from the resource library.

  • If the input data structure is an asterisk (*), you must select an existing physical table.

  • If the input data structure is a specific model structure, enter a name for the physical table. The system automatically materializes the table.

  • If the Depend on Upstream switch is on and the input parameter of this node is connected to the output parameter of an ancestor node, the physical table for this node's input depends on the ancestor's output. It becomes the output physical table of the ancestor node and cannot be manually modified.

Node Outputs

Output ID

The ID of the node's output parameter.

Output Data Structure

The data format of the output table. It is defined by a data model and selected from a drop-down list. It represents the structure of the data table that outputs data in the compute resource.

  • If you select a data table, ensure that the output data model of the node is the same as the input data model of the descendant node. You can specify a custom name for the physical table.

  • If you select an asterisk (*), the data structure can be of any type, based on the output table. In this case, you must select an existing physical table.

Development Environment

Physical Table Resource

The resource where the physical table used for node output in the development environment is located.

Physical Table Name

The name of the physical table for the node's output in the development environment. You can create a new physical table or select an existing one from the resource library.

  • If the output data structure is an asterisk (*), you must select an existing physical table from the resource library.

  • If the output data structure is a specific model structure, enter a name for the physical table. The system automatically materializes the table.

  • If the output data structure is a specific model structure and the data resource type is MaxCompute, Hive, AnalyticDB PostgreSQL, or PostgreSQL, the system automatically generates the output physical table for the node. To modify it, turn on the custom switch.

Production Environment

Physical Table Resource

The resource where the physical table used for node output in the production environment is located.

Physical Table Name

The name of the physical table for the node's output in the production environment. You can create a new physical table or select an existing one from the resource library.

  • If the output data structure is an asterisk (*), you must select an existing physical table from the resource library.

  • If the output data structure is a specific model structure, enter a name for the physical table. The system automatically materializes the table.

  • If the output data structure is a specific model structure and the data resource type is MaxCompute, Hive, AnalyticDB PostgreSQL, or PostgreSQL, the system automatically generates the output physical table for the node. To modify it, turn on the custom switch.

Manual Lineage Settings

Used to configure field mapping relationships in table assets.

After configuring the input and output parameters, click Field Lineage Configuration. In the Lineage Configuration dialog box, click the 14 icon next to the destination field of the output table that you want to configure. From the drop-down list, select one or more corresponding input tables and their fields.

Note

  • For SQL-based node types that can automatically parse input and output parameters, the system automatically matches the field mapping between input and output tables. You can also configure the mapping manually.

  • After you configure the field lineage and publish the node to the production environment, you can go to the Asset Center to view the field mapping between the node's output and input tables. For more information, see the field lineage section in View table asset details.

Scheduling Configuration

To schedule the offline computing nodes in a scenario after it is published, you must turn on the timed scheduling 开关 switch and configure the schedule for the offline nodes before you publish the scenario from the development environment. The configured schedule takes effect only in the production environment. The parameters are described in the following table:

Parameter

Description

Timed Scheduling

Depend on the previous scheduling cycle of this node

If you select this option, the current scheduling run depends on the result of the previous scheduling run for this node.

Effective Date

The period during which the recurring schedule for the node is active. After you set the period, the node is automatically scheduled within the specified date range. You can specify a custom start and end time.

  • You can select the current date or a future date.

  • To view scheduling results for past dates, such as the data results from a few days ago, use the data backfill feature. For more information, see Create a data backfill plan.

Scheduling Cycle

Supports scheduling by month, week, day, hour, and minute.

Specific Time

Specify the exact start and end times based on the selected cycle.

Time Expression

The system automatically generates a time expression based on your settings. You can also manually set the time expression.

Retry on Failure

Retries

Click the Switch switch after Failed Retry to set the number of times to rerun after a run fails.

Retry Interval

The time interval between two consecutive retries.

Timeout

The timeout period for the run. If the runtime exceeds this period, the system stops the run.

Monitoring Configuration

Owner

The default owner is the currently logged-on account for the workspace group. After you set an owner in DataQ - Overwatch, you can select the owner from the drop-down list. For more information, see Create a user.

Business Group

Select a created group from the drop-down list. For more information, see Create an alert group.

Alert Level

Select the level of alerts to receive from the drop-down list.

Referenced functions

When you write an SQL statement, you can go to this tab to add a user-defined function (UDF). You can manually select a UDF or allow the system to automatically select one by parsing the statement.

Parameter

Description

Function List

In the function list, enter a keyword to search for the target function. If you re-parse the SQL, the reference status in the function list is overwritten with the latest parsing result. Manually select any special functions that cannot be automatically parsed. If the function list is empty, you must create a function manually. For more information, see Create a user-defined function.

Function Name

The name of the UDF.

Function ID

The ID of the UDF.

Reference

To reference a UDF, select its check box.

Scenario canvas configuration

Node properties

Configuration Item

Description

Node Name

The name of the node. You can specify a custom name.

Node ID

The unique ID of the node. You can specify a custom ID. The ID must be unique within the same workspace group.

Node Type

The type of the node.

Version Guide

The version description of the node. You can specify a custom description.

Node Description

A description of the node to help users understand and find it.

Job Type

Includes SQL and algorithm package types.

Publish as Public Node

To reuse this compute node, you can publish it as a public node.

Modality

The modality of the node. It is used to identify the compute engine that the fusion node actually runs on. You can quickly switch to a different modality. This parameter is displayed only when the node is a FUSION_NODE.

Runtime configuration

After a compute node runs on the node canvas, the runtime configuration on the scenario canvas is synchronized with the node canvas. To change the physical table in the scenario, you can modify the scenario's runtime parameters.

Scheduling Configuration

To schedule the offline computing nodes in a scenario after it is published, you must turn on the timed scheduling 开关 switch for the offline node and configure its schedule and dependencies before you publish the scenario from the development environment. The configured schedule takes effect only in the production environment.