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 f8f0d76 fix develpoement plugin config typo (#491)
f8f0d76 is described below
commit f8f0d76a5c9e5f9c6a18a071edba1effdb3f7ca6
Author: Kirs <[email protected]>
AuthorDate: Fri Oct 29 15:40:18 2021 +0800
fix develpoement plugin config typo (#491)
---
development/en-us/backend/spi/alert.md | 4 ++--
development/en-us/backend/spi/task.md | 2 +-
development/en-us/development-environment-setup.md | 8 ++++----
development/zh-cn/backend/spi/alert.md | 5 +++--
development/zh-cn/backend/spi/task.md | 2 +-
development/zh-cn/development-environment-setup.md | 8 ++++----
6 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/development/en-us/backend/spi/alert.md
b/development/en-us/backend/spi/alert.md
index d5aab85..b149afb 100644
--- a/development/en-us/backend/spi/alert.md
+++ b/development/en-us/backend/spi/alert.md
@@ -98,11 +98,11 @@ In fact, it's very easy to implement a plugin by yourself,
you only need to care
When you complete the development of the relevant code, you need to execute
`mvn -U install -Dmaven.test.skip=true` to install the plug-in and generate the
plug-in jar of the alert. The directory is:
dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
(the version number will change with the main version number)
-Note: **${VERSION}** needs to be manually modified according to the current
version.
+Note: **${VERSION}** needs to be manually modified according to the current
version. regarding alert.plugin.binding, maven.local.repository does not need
to be modified.
alert.properties configuration
```
-alert.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
+alert.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
```
Then, you can happily start using your own plugins.
diff --git a/development/en-us/backend/spi/task.md
b/development/en-us/backend/spi/task.md
index d219c77..467bdda 100644
--- a/development/en-us/backend/spi/task.md
+++ b/development/en-us/backend/spi/task.md
@@ -12,7 +12,7 @@ Next, configure the plugin directory in
(dolphinscheduler-server/src/main/resour
```
task.plugin.dir config the #task.plugin.dir config the Task Plugin dir .
WorkerServer while find and load the Task Plugin Jar from this dir when deploy
and start WorkerServer on the server .
-task.plugin.dir=dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task
+task.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task
```
The following configurations can be used for local development debugging, for
example:
diff --git a/development/en-us/development-environment-setup.md
b/development/en-us/development-environment-setup.md
index 29ba6f5..becede8 100644
--- a/development/en-us/development-environment-setup.md
+++ b/development/en-us/development-environment-setup.md
@@ -96,19 +96,19 @@ Following steps will guide how to start the
DolphinScheduler backend service.
* 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 -Dmaven.test.skip=true`
- Note: **${VERSION}** needs to be manually modified according to the current
version
+ Note: **${VERSION}** needs to be manually modified according to the current
version, regarding ***.plugin.binding, maven.local.repository does not need to
be modified.
* alert plugin config (alert.properties)
```alert.properties
-
alert.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
+
alert.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
```
* registry plugin config (registry.properties)
```registry.properties
-
registry.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/registry/zookeeper
+
registry.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/registry/zookeeper
```
* task plugin config (worker.properties)
```worker.properties
-
task.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task
+
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.
diff --git a/development/zh-cn/backend/spi/alert.md
b/development/zh-cn/backend/spi/alert.md
index 1b4e4c1..6015288 100644
--- a/development/zh-cn/backend/spi/alert.md
+++ b/development/zh-cn/backend/spi/alert.md
@@ -95,9 +95,10 @@ alert_spi 具体设计可见 issue:[Alert Plugin
Design](https://github.com/ap
注意:**${VERSION}** 需要根据当前版本手动修改。
当你完成相关代码开发的时候, 你需要执行 `mvn -U install -Dmaven.test.skip=true` 安装插件,生成注册中心的插件
jar。目录是:dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert(版本号会跟随主版本号变更)
-alert.properties 配置
+
+alert.properties 配置,对于 alert.plugin.binding,maven.local.repository 这两个参数则无需做修改。
```
-alert.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
+alert.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
```
然后,接下来就可以开始愉快的使用你自己的插件了。
diff --git a/development/zh-cn/backend/spi/task.md
b/development/zh-cn/backend/spi/task.md
index 73ae518..1592527 100644
--- a/development/zh-cn/backend/spi/task.md
+++ b/development/zh-cn/backend/spi/task.md
@@ -11,7 +11,7 @@
其次在(dolphinscheduler-server/src/main/resources/worker.properties)进行配置插件目录
```
task.plugin.dir config the #task.plugin.dir config the Task Plugin dir .
WorkerServer while find and load the Task Plugin Jar from this dir when deploy
and start WorkerServer on the server .
-task.plugin.dir=dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task
+task.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task
```
本地开发调试也可采用以下方式进行配置,例如:
```
diff --git a/development/zh-cn/development-environment-setup.md
b/development/zh-cn/development-environment-setup.md
index bcc8bb0..24ed644 100644
--- a/development/zh-cn/development-environment-setup.md
+++ b/development/zh-cn/development-environment-setup.md
@@ -95,19 +95,19 @@ DolphinScheduler 的元数据存储在关系型数据库中,目前支持的关
* 插件的配置(**仅 2.0 及以后的版本需要**):编译对应的插件,在项目目录执行 `mvn -U clean install
-Dmaven.test.skip=true` 完成注册插件的安装
- 注意:**${VERSION}** 需要根据当前版本手动修改
+ 注意:**${VERSION}** 需要根据当前版本手动修改,关于 ***.plugin.binding, maven.local.repository
则无需做任何修改。
* 告警插件配置 (alert.properties)
```alert.properties
-
alert.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
+
alert.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/alert
```
* 注册中心插件配置 (registry.properties)
```registry.properties
-
registry.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/registry/zookeeper
+
registry.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/registry/zookeeper
```
* 任务插件配置 (worker.properties)
```worker.properties
-
task.plugin.dir=../../../../dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task
+
task.plugin.dir=./dolphinscheduler-dist/target/dolphinscheduler-dist-${VERSION}/lib/plugin/task
```
* 必要的修改
* 如果使用 mysql 作为元数据库,需要先修改 `dolphinscheduler/pom.xml`,将
`mysql-connector-java` 依赖从 `scope` 改为 `compile`,使用 postgresql 则不需要。