DLI Flink Job
Functions
The DLI Flink Job node is used to execute a predefined DLI job for real-time analysis of streaming data.
Working Principles
This node enables you to start a DLI job or query whether a DLI job is running. If you do not select an existing Flink job, DLF creates and starts the job based on the job status configured on the node. You can customize jobs and job parameters.
Property parameters
For details about how to configure the parameters of DLI Flink jobs, see the following:
- Property parameters:
- Table 4
| Parameter | Mandatory | Description |
|---|---|---|
| Job Type | Yes | Select Existing Flink job. |
| Job Name | Yes | Name of an existing DLI Flink job. |
| Node Name | Yes | Name of the node. Must consist of 1 to 128 characters and contain only letters, digits, underscores (_), hyphens (-), slashes (/), less-than signs (<), and greater-than signs (>). |
| Parameter | Mandatory | Description |
|---|---|---|
| Job Type | Yes | Select Flink SQL job. You can start a job by compiling SQL statements. |
| Script Path | Yes | Path to a Flink SQL script to be executed. If the script is not created, create and develop the script by referring to Creating a Script and Developing an SQL Script. |
| DLI Queue | Yes | Shared queues are selected by default. You can also select a dedicated custom queue. NOTE: During job creation, a sub-user can only select a queue that has been allocated to the user. |
| CUs | Yes | Compute Unit (CU) is the pricing unit for DLI. A CU consists of 1 vCPU compute and 4 GB memory. |
| Concurrency | Yes | The number of Flink SQL jobs that run at the same time. NOTE: The value of Concurrency must not exceed the value obtained through the following formula: 4 x (Number of CUs – 1). |
| UDF Jar | No | This parameter is valid only when you select a dedicated queue for Queue. Before selecting a UDF JAR resource package, you need to upload the JAR package and its dependency packages to the OBS bucket and create resources on the resource management page. For details, see Creating a Resource. In SQL, you can call a user-defined function that is inserted into a JAR package. |
| Auto Restart upon Exception | No | Indicates whether to enable automatic restart. If this function is enabled, any job that has become abnormal will be automatically restarted. |
| Job Name | Yes | Name of the DLI Flink job. It must consist of 1 to 64 characters and contain only letters, digits, and underscores (_). The default value is the same as the node name. |
| Job name must be prefixed with workspace name | No | Indicates whether to add a workspace prefix to the created job. |
| Node Name | Yes | Name of the node. Must consist of 1 to 128 characters and contain only letters, digits, underscores (_), hyphens (-), slashes (/), less-than signs (<), and greater-than signs (>). |
| Parameter | Mandatory | Description |
|---|---|---|
| Job Type | Yes | Select User-defined Flink job. |
| JAR Package Path | Yes | User-defined package. Before selecting a package, you need to upload the JAR package and its dependency packages to the OBS bucket and create resources on the resource management page. For details, see Creating a Resource. |
| Main Class | Yes | Name of the JAR package to be loaded, for example, KafkaMessageStreaming.
|
| Main Class Parameter | Yes | List of parameters of a specified class. The parameters are separated by spaces. |
| DLI Queue | Yes | Shared queues are selected by default. You can also select a dedicated custom queue. NOTE: During job creation, a sub-user can only select a queue that has been allocated to the user. |
| CUs | Yes | Compute Unit (CU) is the pricing unit for DLI. A CU consists of 1 vCPU compute and 4 GB memory. |
| Number of management node CUs | Yes | Set the number of CUs on a management unit. The value ranges from 1 to 4. The default value is 1. |
| Concurrency | Yes | The number of Flink SQL jobs that run at the same time. NOTE: The value of Concurrency must not exceed the value obtained through the following formula: 4 x (Number of CUs – 1). |
| Auto Restart upon Exception | No | Indicates whether to enable automatic restart. If this function is enabled, any job that has become abnormal will be automatically restarted. |
| Job Name | Yes | Name of the DLI Flink job. It must consist of 1 to 64 characters and contain only letters, digits, and underscores (_). The default value is the same as the node name. |
| Job name must be prefixed with workspace name | No | Whether to add a workspace prefix to the created job. |
| Node Name | Yes | Name of the node. Must consist of 1 to 128 characters and contain only letters, digits, underscores (_), hyphens (-), slashes (/), less-than signs (<), and greater-than signs (>). |
| Parameter | Mandatory | Description |
|---|---|---|
| Max. Node Execution Duration | Yes | Execution timeout interval for Node. If retry is configured and the execution is not complete within the timeout interval, the node will not be retried and is set to the failed state. |
| Retry upon Failure | Yes | Indicates whether to re-execute a node task if its execution fails. Possible values:
NOTE: If Timeout Interval is configured for the node, the node will not be executed again after the execution times out. Instead, the node is set to the failure state. |
| Failure Policy | Yes | Operation that will be performed if the node task fails to be executed. Possible values:
|
Last Article: Kafka Client
Next Article: DLI SQL
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.