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/10/28 08:04:32 UTC

[dolphinscheduler-website] branch master updated: add plugin config in development docs (#476)

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 9e9595f  add plugin config in development docs (#476)
9e9595f is described below

commit 9e9595f4304a20918f5c4cfa436eb00e3373b3f7
Author: Kirs <ac...@163.com>
AuthorDate: Thu Oct 28 16:04:28 2021 +0800

    add plugin config in development docs (#476)
    
    * add plugin config in development docs
---
 development/en-us/development-environment-setup.md | 17 ++++++++++++++++-
 development/zh-cn/development-environment-setup.md | 18 +++++++++++++++++-
 2 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/development/en-us/development-environment-setup.md b/development/en-us/development-environment-setup.md
index 153e3c4..d5f2721 100644
--- a/development/en-us/development-environment-setup.md
+++ b/development/en-us/development-environment-setup.md
@@ -94,7 +94,22 @@ Following steps will guide how to start the DolphinScheduler backend service.
 ##### Backend Start Prepare
 
 * Open project: Use IDE open the project, here we use Intellij IDEA as an example, after opening it will take a while for Intellij IDEA to complete the dependent download
-* Plugin installation(**Only required for 2.0 or later**): Compile plugin by command `mvn -U clean install package -Prelease -Dmaven.test.skip=true`
+* Plugin installation(**Only required for 2.0 or later**): Compile plugin by command `mvn -U clean install  -Dmaven.test.skip=true`
+  
+  Note: ${VERSION} needs to be manually modified according to the current version
+  
+  * alert plugin config
+  ```alert.properties
+   alert.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert	
+  ```
+  * registry plugin config
+  ```registry.properties
+   alert.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/registry/zookeeper	
+  ```
+  * task plugin config
+  ```worker.properties
+     task.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task	
+  ```
 * File change
   * If you use mysql as your metadata database, you need to modify `dolphinscheduler/pom.xml` and change the dependency `mysql-connector-java` from `scope` to `compile`. This step is not necessary to use postgresql.
   * Modify database configuration, modify the database configuration in the `dolphinscheduler/dolphinscheduler-dao/datasource.properties`
diff --git a/development/zh-cn/development-environment-setup.md b/development/zh-cn/development-environment-setup.md
index e763663..174df4d 100644
--- a/development/zh-cn/development-environment-setup.md
+++ b/development/zh-cn/development-environment-setup.md
@@ -92,7 +92,23 @@ DolphinScheduler 的元数据存储在关系型数据库中,目前支持的关
 ##### 必要的准备工作
 
 * 打开项目:使用开发工具打开项目,这里以 Intellij IDEA 为例,打开后需要一段时间,让 Intellij IDEA 完成以依赖的下载。
-* 插件的安装(**仅 2.0 及以后的版本需要**):编译对应的插件,在项目目录执行 `mvn -U clean install package -Prelease -Dmaven.test.skip=true` 完成注册插件的安装
+  
+* 插件的配置(**仅 2.0 及以后的版本需要**):编译对应的插件,在项目目录执行 `mvn -U clean install -Dmaven.test.skip=true` 完成注册插件的安装
+
+  注意:${VERSION} 需要根据当前版本手动修改
+  
+  * 告警插件配置
+  ```alert.properties
+   alert.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert	
+  ```
+  * 注册中心插件配置
+  ```registry.properties
+   alert.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/registry/zookeeper	
+  ```
+  * 任务插件配置
+  ```worker.properties
+     task.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task	
+  ```
 * 必要的修改
   * 如果使用 mysql 作为元数据库,需要先修改 `dolphinscheduler/pom.xml`,将 `mysql-connector-java` 依赖从 `scope` 改为 `compile`,使用 postgresql 则不需要。
   * 修改数据库配置,修改 `dolphinscheduler/dolphinscheduler-dao/datasource.properties` 文件中的数据库配置