Compute node configuration
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.
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.
| ||
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.
| ||
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.
| ||
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.
| ||
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.
| ||
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.
| ||
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.
| ||
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 Note
| ||
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.
| |
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 |
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.