You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2023/01/02 03:18:30 UTC

[GitHub] [dolphinscheduler] geekyouth opened a new pull request, #13312: Update datasource-setting.md

geekyouth opened a new pull request, #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312

   <!--Thanks very much for contributing to Apache DolphinScheduler. Please review https://dolphinscheduler.apache.org/en-us/community/development/pull-request.html before opening a pull request.-->
   
   ## Purpose of the pull request
   
   `bash tools/bin/upgrade-schema.sh` 执行报错,提示 mysql class 找不到,很显然是缺少 jar
   
   ## Brief change log
   
   `cp /opt/mysql/mysql-connector-java-8.0.16/mysql-connector-java-8.0.16.jar ./tools/libs/`
   
   > 如果使用 MySQL,需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并解压后移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 `api-server/libs`、`alert-server/libs`、`master-server/libs`、`worker-server/libs`、`tools/libs`。
   
   tools/libs 这里如果缺少 mysql 驱动,会导致 bash tools/bin/upgrade-schema.sh 报错
   
   
   ![image](https://user-images.githubusercontent.com/12899262/210192920-b079457c-49ff-478f-b0ff-da6af46ab93d.png)
   
   


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] EricGao888 commented on a diff in pull request #13312: Update datasource-setting.md

Posted by GitBox <gi...@apache.org>.
EricGao888 commented on code in PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#discussion_r1060248727


##########
docs/docs/en/guide/howto/datasource-setting.md:
##########
@@ -4,8 +4,8 @@
 
 We here use MySQL as an example to illustrate how to configure an external database:
 
-> NOTE: If you use MySQL, you need to manually download [mysql-connector-java driver][mysql] (8.0.16) and move it to the libs directory of DolphinScheduler
-> which is `api-server/libs` and `alert-server/libs` and `master-server/libs` and `worker-server/libs`.
+> NOTE: If you use MySQL, you need to manually download [mysql-connector-java driver][mysql] (8.0.16) and unzip then move it to the libs directory of DolphinScheduler
+> which is `api-server/libs` and `alert-server/libs` and `master-server/libs` and `worker-server/libs` and `tools/libs`.

Review Comment:
   ```suggestion
   > which are `api-server/libs`, `alert-server/libs`, `master-server/libs` and `tools/libs`. Because DolphinScheduler worker no more accesses database, there is no need to copy it to `worker-server/libs` unless your task plugins need to access mysql database.
   ```



##########
docs/docs/en/guide/howto/datasource-setting.md:
##########
@@ -4,8 +4,8 @@
 
 We here use MySQL as an example to illustrate how to configure an external database:
 
-> NOTE: If you use MySQL, you need to manually download [mysql-connector-java driver][mysql] (8.0.16) and move it to the libs directory of DolphinScheduler
-> which is `api-server/libs` and `alert-server/libs` and `master-server/libs` and `worker-server/libs`.
+> NOTE: If you use MySQL, you need to manually download [mysql-connector-java driver][mysql] (8.0.16) and unzip then move it to the libs directory of DolphinScheduler

Review Comment:
   ```suggestion
   > NOTE: If you use MySQL, you need to manually download [mysql-connector-java driver][mysql] (8.0.16), unzip it and then copy it to the lib directories of DolphinScheduler components,
   ```



##########
docs/docs/zh/guide/howto/datasource-setting.md:
##########
@@ -23,7 +23,7 @@ export SPRING_DATASOURCE_PASSWORD={password}
 
 DolphinScheduler 元数据存储在关系型数据库中,目前支持 PostgreSQL 和 MySQL。下面分别介绍如何使用 MySQL 和 PostgresQL 初始化数据库。
 
-> 如果使用 MySQL 需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 `api-server/libs` 和 `alert-server/libs` 和 `master-server/libs` 和 `worker-server/libs`。
+> 如果使用 MySQL,需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并解压后移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 `api-server/libs`、`alert-server/libs`、`master-server/libs`、`worker-server/libs`、`tools/libs`。

Review Comment:
   ```suggestion
   > 如果使用 MySQL,需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并解压后移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 `api-server/libs`、`alert-server/libs`、`master-server/libs`、`tools/libs`。因为 DolphinScheduler 的 worker 不再需要访问数据库,您不再需要将驱动放到`worker-server/libs`目录下,除非您的任务插件需要访问 MySQL 数据库。
   ```



-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] ruanwenjun commented on a diff in pull request #13312: Update datasource-setting.md

Posted by GitBox <gi...@apache.org>.
ruanwenjun commented on code in PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#discussion_r1060232680


##########
docs/docs/zh/guide/howto/datasource-setting.md:
##########
@@ -4,7 +4,7 @@
 
 我们这里以 MySQL 为例来说明如何配置外部数据库:
 
-> 如果使用 MySQL 需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 `api-server/libs` 和 `alert-server/libs` 和 `master-server/libs` 和 `worker-server/libs`。
+> 如果使用 MySQL,需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并解压后移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 `api-server/libs`、`alert-server/libs`、`master-server/libs`、`worker-server/libs`、`tools/libs`。

Review Comment:
   No, we don't need to add mysql driver for worker, unless you need to use MySQL in task plugin.



-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on pull request #13312: Update datasource-setting.md

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#issuecomment-1542964122

   This pull request has been automatically marked as stale because it has not had recent activity for 120 days. It will be closed in 7 days if no further activity occurs.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] geekyouth commented on pull request #13312: Update datasource-setting.md

Posted by GitBox <gi...@apache.org>.
geekyouth commented on PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#issuecomment-1368998608

   > > LGTM, thanks
   > 
   > @geekyouth Seems u haven't updated the corresponding English version doc. Could u plz update it in this PR? Thx.
   
   update done 


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] EricGao888 commented on pull request #13312: Update datasource-setting.md

Posted by GitBox <gi...@apache.org>.
EricGao888 commented on PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#issuecomment-1368879030

   @geekyouth Better only use English in PR description next time, thx : )


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] EricGao888 commented on a diff in pull request #13312: Update datasource-setting.md

Posted by GitBox <gi...@apache.org>.
EricGao888 commented on code in PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#discussion_r1060024238


##########
docs/docs/zh/guide/howto/datasource-setting.md:
##########
@@ -4,7 +4,7 @@
 
 我们这里以 MySQL 为例来说明如何配置外部数据库:
 
-> 如果使用 MySQL 需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 `api-server/libs` 和 `alert-server/libs` 和 `master-server/libs` 和 `worker-server/libs`。
+> 如果使用 MySQL,需要手动下载 [mysql-connector-java 驱动][mysql] (8.0.16) 并解压后移动到 DolphinScheduler 的每个模块的 libs 目录下,其中包括 `api-server/libs`、`alert-server/libs`、`master-server/libs`、`worker-server/libs`、`tools/libs`。

Review Comment:
   Just for double-check, since DS removes the dependency of `DAO` module in worker, do we still need to add `mysql-connector-java` for worker? https://github.com/apache/dolphinscheduler/pull/13242 cc @ruanwenjun 



-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] commented on pull request #13312: Update datasource-setting.md

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#issuecomment-1552243173

   This pull request has been closed because it has not had recent activity. You could reopen it if you try to continue your work, and anyone who are interested in it are encouraged to continue work on this pull request.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] EricGao888 commented on pull request #13312: Update datasource-setting.md

Posted by GitBox <gi...@apache.org>.
EricGao888 commented on PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#issuecomment-1368932666

   > LGTM, thanks
   
   @geekyouth Seems u haven't updated the corresponding English version doc. Could u plz update it in this PR? Thx.


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] github-actions[bot] closed pull request #13312: Update datasource-setting.md

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #13312: Update datasource-setting.md
URL: https://github.com/apache/dolphinscheduler/pull/13312


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [dolphinscheduler] kezhenxu94 commented on pull request #13312: Update datasource-setting.md

Posted by GitBox <gi...@apache.org>.
kezhenxu94 commented on PR #13312:
URL: https://github.com/apache/dolphinscheduler/pull/13312#issuecomment-1376720377

   Changing base branch to dev brings so many conflicts, which means the files changed in this PR has been outdated, so maybe you want to rework based on dev branch...


-- 
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: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org