From a64421e8e7e866cd33490ff724b9bde4556c258f Mon Sep 17 00:00:00 2001 From: JieguangZhou Date: Fri, 21 Apr 2023 16:15:42 +0800 Subject: [PATCH] [Improve][DOC] Update resource local file system docs (#13982) * update resource local file system docs * Update configuration.md * Update configuration.md --- docs/docs/en/guide/resource/configuration.md | 21 +++++++++++++++++-- docs/docs/zh/guide/resource/configuration.md | 22 ++++++++++++++++++-- 2 files changed, 39 insertions(+), 4 deletions(-) diff --git a/docs/docs/en/guide/resource/configuration.md b/docs/docs/en/guide/resource/configuration.md index 4d3fc7aaa4..d1686799a5 100644 --- a/docs/docs/en/guide/resource/configuration.md +++ b/docs/docs/en/guide/resource/configuration.md @@ -9,8 +9,25 @@ ### Configure `common.properties` -If you deploy DolphinScheduler in `Cluster` or `Pseudo-Cluster` mode, you need to configure `api-server/conf/common.properties` and `worker-server/conf/common.properties`. -If you deploy DolphinScheduler in `Standalone` mode, you only need to configure `standalone-server/conf/common.properties` as follows: +- If you deploy DolphinScheduler in `Cluster` or `Pseudo-Cluster` mode, you need to configure `api-server/conf/common.properties` and `worker-server/conf/common.properties`. +- If you deploy DolphinScheduler in `Standalone` mode, you only need to configure `standalone-server/conf/common.properties` as follows: + +config three fields as follows: +```properties +...... + +# resource storage type: HDFS, S3, NONE +resource.storage.type=HDFS +# resource store on HDFS/S3 path, resource file will store to this base path, self configuration, please make sure the directory exists on hdfs and have read write permissions. "/dolphinscheduler" is recommended +resource.storage.upload.base.path=/tmp/dolphinscheduler + +...... + +resource.hdfs.fs.defaultFS=file:/// + +...... + +``` - Change `resource.storage.upload.base.path` to your local directory path. Please make sure the `tenant resource.hdfs.root.user` has read and write permissions for `resource.storage.upload.base.path`, e,g. `/tmp/dolphinscheduler`. `DolphinScheduler` will create the directory you configure if it does not exist. - Modify `resource.storage.type=HDFS` and `resource.hdfs.fs.defaultFS=file:///`. diff --git a/docs/docs/zh/guide/resource/configuration.md b/docs/docs/zh/guide/resource/configuration.md index 78c453b40b..aa6f2e44a5 100644 --- a/docs/docs/zh/guide/resource/configuration.md +++ b/docs/docs/zh/guide/resource/configuration.md @@ -9,8 +9,26 @@ ### 配置 `common.properties` 文件 -如果您以 `集群` 模式或者 `伪集群` 模式部署DolphinScheduler,您需要对以下路径的文件进行配置:`api-server/conf/common.properties` 和 `worker-server/conf/common.properties`; -若您以 `单机` 模式部署DolphinScheduler,您只需要配置 `standalone-server/conf/common.properties`,具体配置如下: +- 如果您以 `集群` 模式或者 `伪集群` 模式部署DolphinScheduler,您需要对以下路径的文件进行配置:`api-server/conf/common.properties` 和 `worker-server/conf/common.properties`; +- 若您以 `单机` 模式部署DolphinScheduler,您只需要配置 `standalone-server/conf/common.properties`,具体配置如下: + + +如下配置三个字段 +```properties +...... + +# resource storage type: HDFS, S3, NONE +resource.storage.type=HDFS +# resource store on HDFS/S3 path, resource file will store to this base path, self configuration, please make sure the directory exists on hdfs and have read write permissions. "/dolphinscheduler" is recommended +resource.storage.upload.base.path=/tmp/dolphinscheduler + +...... + +resource.hdfs.fs.defaultFS=file:/// + +...... + +``` - 将 `resource.storage.upload.base.path` 改为本地存储路径,请确保部署 DolphinScheduler 的用户拥有读写权限,例如:`resource.storage.upload.base.path=/tmp/dolphinscheduler`。当路径不存在时会自动创建文件夹 - 修改 `resource.storage.type=HDFS` 和 `resource.hdfs.fs.defaultFS=file:///`。