Solve the problem that the workflow in dolphinscheduler-3.1.3 contains chunjun tasks, and the parameter invalid is displayed when saving and cannot be saved

possible errors

When creating or editing a task flow, the chunjun task cannot be saved, and the prompt parameter is invalid parameter invalid

As of 2023.02, all versions of chunjun tasks are abnormally saved, waiting for the official follow-up update, there is a temporary solution below

[bug] [task-chunjun] can not submit successfully cause check err · Issue #13108 · apache/dolphinscheduler (github.com)

problem causes

The chunjun function has been online for a short time, and there are bugs. The default value of customConfig is false, so the task cannot be created.

[ERROR][UI] Failed to create workflow containing Chunjun node Issue #11321 Apache/Dolphin Scheduler (github.com)

[fix-11321][ui] fix create workflow contains chunjun node failed · jkhhuse/dolphinscheduler@5062324 (github.com)

Solution

Method 1. Recompile after modifying the front-end code

(1)修改dolphinscheduler-ui/src/views/projects/task/components/node/tasks/use-chunjun.ts的customConfig为true

[fix-11321][ui] fix create workflow contains chunjun node failed · jkhhuse/dolphinscheduler@5062324 (github.com)

(2) Unzip the installation package and start zookeeper

(3) Copy the originally configured install_env.sh and dolphinscheduler_env.sh to the new bin/env, and execute bin/install_all.sh

dolphinscheduler-ui is a vue framework, and you need to download node.js online tutorials for packaging. There are many online tutorials that will not be detailed here.

Run in the dolphinscheduler directory

mvn -U package -Prelease -Dmaven.test.skip=true -e

After running, you can find the compressed package under the directory dolphinscheduler-dist/target

Method 2. Directly modify the compiled js file

After testing, there are two paths where the compiled use-chunjun.js is located,

(1) dolphinscheduler/ui/assets/detail-*.js under the ui folder

(2) api-server/ui/assets /detail-*.js under the api folder

The suffix of detail.js is different every time it is compiled. There are only three files in total, which can be searched by Ctrl+F

After the modification is complete, restart dolphinscheduler according to the steps

After entering the front-end interface, creating chunjun tasks in the workflow can be saved normally

After completing any method, it can be successfully saved

Guess you like

Origin blog.csdn.net/weixin_44382736/article/details/128918895