106umao commented on code in PR #10265:
URL: https://github.com/apache/dolphinscheduler/pull/10265#discussion_r883502164
##########
dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/config/StoreConfiguration.java:
##########
@@ -43,6 +46,12 @@ public StorageOperate storageOperate() {
switch (PropertyUtils.getString(RESOURCE_STORAGE_TYPE)) {
case STORAGE_S3:
return S3Utils.getInstance();
+ case STORAGE_LOCAL:
+ // override the FS_DEFAULT_FS configuration
+ PropertyUtils.setValue(FS_DEFAULT_FS,STORAGE_LOCAL_DEFAULT_FS);
Review Comment:
> String defaultFS = configuration.get(Constants.FS_DEFAULT_FS);
`String defaultFS = configuration.get(Constants.FS_DEFAULT_FS); `
the `defaultFS` is always "file:///" , so ` defaultFS.startsWith("file")` is
always true ,and `defaultFSProp `is the value configured in the configuration
file, which is the value I passed in

I output these two values on the code, let's take a look:


The logic of my pr can be seen as the following pseudo code:
`if (resource.storage.type==HDFS_LOCAL) 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]