zhongjiajie commented on a change in pull request #688:
URL: 
https://github.com/apache/dolphinscheduler-website/pull/688#discussion_r805151673



##########
File path: docs/en-us/2.0.3/user_doc/guide/task/flink.md
##########
@@ -1,23 +1,65 @@
-
 # Flink
 
-- Drag in the toolbar<img src="/img/flink.png" width="35"/>The task node to 
the drawing board, as shown in the following figure:
-
-<p align="center">
-  <img src="/img/flink-en.png" width="80%" />
-</p>
-
-- Program type: supports JAVA, Scala and Python three languages
-- The class of the main function: is the full path of the Main Class, the 
entry point of the Flink program
-- Main jar package: is the Flink jar package
-- Deployment mode: support three modes of cluster and local
-- Number of slots: You can set the number of slots
-- Number of taskManage: You can set the number of taskManage
-- JobManager memory number: You can set the jobManager memory number
-- TaskManager memory number: You can set the taskManager memory number
-- Command line parameters: Set the input parameters of the Flink program and 
support the substitution of custom parameter variables.
-- Other parameters: support --jars, --files, --archives, --conf format
-- Resource: If the resource file is referenced in other parameters, you need 
to select and specify in the resource
-- Custom parameter: It is a local user-defined parameter of Flink, which will 
replace the content with \${variable} in the script
-
-Note: JAVA and Scala are only used for identification, there is no difference, 
if it is Flink developed by Python, there is no class of the main function, the 
others are the same
+## Overview
+
+Flink task type for executing Flink programs. For Flink nodes, the worker 
submits the task by using the flink command `flink run`. See [flink 
cli](https://nightlies.apache.org/flink/flink-docs-release-1.14/docs/deployment/cli/)
 for more details.
+
+## Create task
+
+- Click Project Management -> Project Name -> Workflow Definition, and click 
the "Create Workflow" button to enter the DAG editing page.
+- Drag the <img src="/img/tasks/icons/flink.png" width="15"/> from the toolbar 
to the drawing board.
+
+## Task Parameter
+
+- **Node name**: The node name in a workflow definition is unique.
+- **Run flag**: Identifies whether this node can be scheduled normally, if it 
does not need to be executed, you can turn on the prohibition switch.
+- **Descriptive information**: describe the function of the node.
+- **Task priority**: When the number of worker threads is insufficient, they 
are executed in order from high to low, and when the priority is the same, they 
are executed according to the first-in first-out principle.
+- **Worker grouping**: Tasks are assigned to the machines of the worker group 
to execute. If Default is selected, a worker machine will be randomly selected 
for execution.
+- **Environment Name**: Configure the environment name in which to run the 
script.
+- **Number of failed retry attempts**: The number of times the task failed to 
be resubmitted.
+- **Failed retry interval**: The time, in cents, interval for resubmitting the 
task after a failed task.
+- **Delayed execution time**: the time, in cents, that a task is delayed in 
execution.
+- **Timeout alarm**: Check the timeout alarm and timeout failure. When the 
task exceeds the "timeout period", an alarm email will be sent and the task 
execution will fail.
+- **Program type**: supports Java、Scala and Python.
+- **The class of main function**: is the full path of Main Class, the entry 
point of the Flink program.
+- **Resource**: Refers to the list of resource files that need to be called in 
the script, and the files uploaded or created by the resource center-file 
management.
+- **Main jar package**: is the Flink jar package.
+- **Deployment mode**: support three modes of cluster and local 
+- **Task name** (option): Flink task name.
+- **jobManager memory number**: This is used to set the number of jobManager 
memories, which can be set according to the actual production environment.
+- **Number of slots**: This is used to set the number of Slots, which can be 
set according to the actual production environment.
+- **taskManager memory number**: This is used to set the number of taskManager 
memories, which can be set according to the actual production environment.
+- **Number of taskManage**: This is used to set the number of taskManagers, 
which can be set according to the actual production environment.
+- **Custom parameters**: It is a user-defined parameter that is part of 
MapReduce, which will replace the content with ${variable} in the script.
+- **Predecessor task**: Selecting a predecessor task for the current task will 
set the selected predecessor task as upstream of the current task.
+- **Parallelism**: Used to set the degree of parallelism for executing Flink 
tasks.
+- **Main program parameters**: et the input parameters of the Flink program 
and support the substitution of custom parameter variables.
+- **Other parameters**: support `--jars`, `--files`,` --archives`, `--conf` 
format.
+- **Resource**: If the resource file is referenced in other parameters, you 
need to select and specify in the resource.
+- **Custom parameter**: It is a local user-defined parameter of Flink, which 
will replace the content with ${variable} in the script.
+- **Predecessor task**: Selecting a predecessor task for the current task will 
set the selected predecessor task as upstream of the current task.
+
+## Task Example
+
+### Execute the WordCount program
+
+This is a common introductory case in the Big Data ecosystem, which often 
applied to computational frameworks such as MapReduce, Flink and Spark. The 
main purpose is to count the number of identical words in the input text. 
(Flink's releases come with this example job)
+
+#### Uploading the main package
+
+When using the Flink task node, you will need to use the Resource Centre to 
upload the jar package for the executable. Refer to the [resource 
centre](../resource.md).

Review comment:
       But I find out we use `resource center` in 
https://dolphinscheduler.apache.org/en-us/docs/latest/user_doc/guide/resource.html.
 I thinks maybe use the same keyword would be better. WDYT?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to