You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2021/12/23 10:11:28 UTC

[dolphinscheduler-website] branch master updated: Add Task-SPI Instruction (#608)

This is an automated email from the ASF dual-hosted git repository.

kerwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 3fe4ca5  Add Task-SPI Instruction (#608)
3fe4ca5 is described below

commit 3fe4ca5e76608124955a415991be2991ae2fa250
Author: Kirs <ac...@163.com>
AuthorDate: Thu Dec 23 18:11:24 2021 +0800

    Add Task-SPI Instruction (#608)
---
 development/en-us/backend/spi/task.md | 6 ++++++
 development/zh-cn/backend/spi/task.md | 5 ++++-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/development/en-us/backend/spi/task.md b/development/en-us/backend/spi/task.md
index 52650db..70b01d4 100644
--- a/development/en-us/backend/spi/task.md
+++ b/development/en-us/backend/spi/task.md
@@ -7,3 +7,9 @@ org.apache.dolphinscheduler.spi.task.TaskChannel
 The plug-in can implement the above interface. It mainly includes creating tasks (task initialization, task running, etc.) and task cancellation. If it is a yarn task, you need to implement org.apache.dolphinscheduler.plugin.task.api.AbstractYarnTask.
 
 We provide APIs for external access to all tasks in the dolphinscheduler-task-api module, while the dolphinscheduler-spi module is the spi general code library, which defines all the plug-in modules, such as the alarm module, the registry module, etc., you can read and view in detail .
+
+*NOTICE*
+
+Since the task plug-in involves the front-end page, the front-end SPI has not yet been implemented, so you need to implement the front-end page corresponding to the plug-in separately.
+
+If there is a class conflict in the task plugin, you can use [Shade-Relocating Classes](https://maven.apache.org/plugins/maven-shade-plugin/) to solve this problem.
\ No newline at end of file
diff --git a/development/zh-cn/backend/spi/task.md b/development/zh-cn/backend/spi/task.md
index 488ce77..b2ee524 100644
--- a/development/zh-cn/backend/spi/task.md
+++ b/development/zh-cn/backend/spi/task.md
@@ -9,4 +9,7 @@ org.apache.dolphinscheduler.spi.task.TaskChannel
 我们在 dolphinscheduler-task-api 模块提供了所有任务对外访问的 API,而 dolphinscheduler-spi 模块则是 spi 通用代码库,定义了所有的插件模块,比如告警模块,注册中心模块等,你可以详细阅读查看。
 
 *NOTICE*
-由于任务插件设计到前端页面,目前前端的SPI还没有实现,因此你需要单独实现插件对应的前端页面。
+
+由于任务插件涉及到前端页面,目前前端的SPI还没有实现,因此你需要单独实现插件对应的前端页面。
+
+如果任务插件存在类冲突,你可以采用 [Shade-Relocating Classes](https://maven.apache.org/plugins/maven-shade-plugin/) 来解决这种问题。