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 2022/05/29 12:48:18 UTC

[GitHub] [dolphinscheduler] QuakeWang commented on a diff in pull request #10264: [Feature-9385][docs] Added Local File Resource Configuration Guide to the document

QuakeWang commented on code in PR #10264:
URL: https://github.com/apache/dolphinscheduler/pull/10264#discussion_r884265954


##########
docs/docs/zh/guide/resource/configuration.md:
##########
@@ -2,6 +2,16 @@
 
 资源中心通常用于上传文件、 UDF 函数,以及任务组管理等操作。针对单机环境可以选择本地文件目录作为上传文件夹(此操作不需要部署 Hadoop)。当然也可以选择上传到 Hadoop or MinIO 集群上,此时则需要有 Hadoop(2.6+)或者 MinIOn 等相关环境。
 
+## 本地资源配置
+在单机环境下,可以选择使用本地文件目录作为上传文件夹(无需部署Hadoop),此时需要进行如下配置:
+
+### 配置 common.properties 文件
+
+对以下路径的文件进行配置:`api-server/conf/common.properties` 和 `worker-server/conf/common.properties`
+
+- 将`data.basedir.path`改为本地存储路径,请确保路径存在,并且部署DolphinScheduler的用户拥有读写权限,例如:`data.basedir.path=/tmp/dolphinscheduler`

Review Comment:
   ```suggestion
   - 将 `data.basedir.path` 改为本地存储路径,请确保路径存在,并且部署 DolphinScheduler 的用户拥有读写权限,例如:`data.basedir.path=/tmp/dolphinscheduler`
   ```
   
   ref :[document specification](https://dolphinscheduler.apache.org/en-us/community/development/document.html). 
   Add a space between Chinese and English, for the purpose of document specification.



##########
docs/docs/zh/guide/resource/configuration.md:
##########
@@ -2,6 +2,16 @@
 
 资源中心通常用于上传文件、 UDF 函数,以及任务组管理等操作。针对单机环境可以选择本地文件目录作为上传文件夹(此操作不需要部署 Hadoop)。当然也可以选择上传到 Hadoop or MinIO 集群上,此时则需要有 Hadoop(2.6+)或者 MinIOn 等相关环境。
 
+## 本地资源配置
+在单机环境下,可以选择使用本地文件目录作为上传文件夹(无需部署Hadoop),此时需要进行如下配置:
+
+### 配置 common.properties 文件
+
+对以下路径的文件进行配置:`api-server/conf/common.properties` 和 `worker-server/conf/common.properties`
+
+- 将`data.basedir.path`改为本地存储路径,请确保路径存在,并且部署DolphinScheduler的用户拥有读写权限,例如:`data.basedir.path=/tmp/dolphinscheduler`
+- 修改下列两个参数,分别是`resource.storage.type=HDFS`和`fs.defaultFS=file:///`。

Review Comment:
   ```suggestion
   - 修改下列两个参数,分别是 `resource.storage.type=HDFS` 和 `fs.defaultFS=file:///`。
   ```



-- 
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