Step 3: Configure node running settings

Updated at:

Configure and manage scripts, user-defined functions, node inputs, node outputs, and parameters for a compute node. This lets you process various data types, view task dependencies across different workspaces within the same tenant, and configure alert reporting. This topic describes how to configure the running parameters for a node.

Prerequisites

The required cloud computing resource has been created. For more information, see Create a cloud computing resource.

Procedure

Step 1: Set inputs, outputs, and node variables

  1. Click the Running Configuration tab on the right side of the page. Select the compute engines for the development and production environments.

  2. Create the node's input parameters, output parameters, and node variables manually. Alternatively, click the 解析 icon on the edit page to automatically parse the input and output parameters for the node. For more information about the parameters, see Running properties.

    To use the automatic parsing method, click the 解析 icon on the edit page. After the parsing is successful, the automatically parsed inputs, outputs, and node variables appear on the Running Configuration tab of the node editing page.

    Note

    If you upload a file package for a node of the following types, you must add the input and output parameters manually because automatic parsing is not supported: Spark Batch, Spark SQL, Elastic Job, MaxCompute MR, Elastic Service, Blink, Blink DataStream, Flink DataStream, Flink Vvp Stream, Flink Vvp SQL, Flink Vvr Stream, Flink Vvr SQL, Flink SQL, or Spark Stream.

    Parameter

    Description

    Compute engine

    Development

    The resource used for running in the development environment.

    Production

    The resource used for running in the production environment.

    Resource group

    The resource pool for publishing tasks. After you set this parameter, you can view the development and production resource groups for the current public node. To configure resource groups, go to System Settings > Resource Group Management.

    Node variable

    Variable name

    A custom name for the variable.

    Variable value

    The value of the variable. Set the value as needed. You can select a value from the global variables. For more information, see Add a global variable for a workspace.

    Description

    The description of the variable.

    Node inputs

    Input identifier

    The identifier for the node's input parameter.

    Input data structure

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

    • If you select a data table, ensure that the input model matches the output data model of the ancestor node. You can customize the physical table name.

    • If you select an asterisk (*), the data structure can be any structure. This is used for operations on tables that do not have a data model. In this case, you must select an existing physical table.

    Development environment

    Physical table resource

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

    Physical table name

    The name of the physical table for the node input parameter in the development environment. You can create a new physical table name 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 physical table name. The system automatically materializes the table.

    Production environment

    Physical table resource

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

    Physical table name

    The name of the physical table for the node input in the production environment. You can create a new physical table name 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 physical table name. The system automatically materializes the table.

    Node outputs

    Output identifier

    The identifier for the node's output parameter.

    Output data structure

    The data format of the output table. This is defined by a data model. Select a data structure from the drop-down list. This structure represents the data table that provides output data in the compute resource.

    • If you select a data table, ensure that the output model of the node matches the input data model of the descendant node. You can customize the physical table name.

    • If you select an asterisk (*), the data structure can be any structure. In this case, you must select an existing table.

    Development environment

    Physical table resource

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

    Physical table name

    The name of the physical table for the node 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 physical table name. 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 for PostgreSQL, or PostgreSQL, the system automatically generates the output physical table for the node. To modify it, enable Custom Output.

    Production environment

    Physical table resource

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

    Physical table name

    The name of the physical table for the node 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 physical table name. 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 for PostgreSQL, or PostgreSQL, the system automatically generates the output physical table for the node. To modify it, enable the custom switch.

    Set lineage manually

    Configure the field mapping for table assets.

    After you configure the input and output parameters, enable the Set lineage manually switch. In the Lineage Configuration dialog box, click the 14 icon next to the target field of the output table. Then, select one or more corresponding input tables and their fields from the drop-down list.

    Note

    • For SQL node types that can automatically parse input and output parameters, the system automatically matches the field mappings between input and output tables. Manual configuration is also supported.

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

Step 2: (Optional) Configure field mapping for data tables

Note
  • For SQL node types that can automatically parse input and output parameters, the system automatically matches the field mappings between input and output tables. If the parsed field lineage is incorrect, you can also manually configure the field mapping.

  • For node types that cannot automatically parse input and output parameters, you must configure the input and output parameters to view the field lineage in your assets. Then, click Field Lineage Configuration to manually configure the field mapping between the input and output tables.

  • Node types that cannot automatically parse input and output parameters include the following: MaxCompute MR, Hadoop, Elastic Job, Spark Batch, Spark Stream, Elastic Service, Flink Vvp Stream, and Flink Vvr Stream.

  1. Enable the Set lineage manually switch.

  2. In the Lineage Configuration dialog box, click the 14 icon next to the target field of the output table. Select the corresponding input table and field from the drop-down list, and then click Save.

Note

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

Step 3: Set dependencies

  1. If your service has dependencies, configure the dependencies for the node. You can configure dependencies in one of two ways.

    • Click Parse Dependencies. If dependent nodes exist, the system automatically parses the dependencies and displays them in the dependency area.

    • Click Add Dependency to manually add a dependency. Then, select the dependency type, its workspace, and the name of the dependent node.

      1. In the External Dependency Node area, select a dependency type from the Dependency Type drop-down list.

      2. Select the workspace and name of the dependent node.

    Parameter

    Description

    Upstream

    Add Dependency

    Click Add Dependency to manually create a dependent node.

    Parse Dependencies

    Click Parse Dependencies. If dependent nodes exist, the system automatically parses and generates them.

    Dependency

    The relationship of the dependent node.

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

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

    Workspace

    The workspace to which the dependent node belongs.

    Scenario Name/Workflow

    The task flow identifier of the dependent node.

    Node

    The name of the selected dependent node.

    Downstream

    Displays information about other nodes that depend on the current node. No configuration is required.

    • Node: The name of the descendant node that depends on the current node as an ancestor.

    • Scenario Name/Workflow: The scenario or workflow identifier for the descendant node that depends on the current node.

    • Workspace: The workspace to which the descendant node that depends on the current node belongs.

  2. In the upper-left corner of the node editing page, click the Save 保存 icon.