Browse Source

[Improvement-13804] Optimal HDFS configuration acquisition (#13804) (#13811)

defaultFS key from FS_DEFAULT_FS to HDFS_DEFAULT_FS
3.2.0-release
zhaifengbing 1 year ago committed by GitHub
parent
commit
3305d6d127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      dolphinscheduler-storage-plugin/dolphinscheduler-storage-hdfs/src/main/java/org/apache/dolphinscheduler/plugin/storage/hdfs/HdfsStorageOperator.java

4
dolphinscheduler-storage-plugin/dolphinscheduler-storage-hdfs/src/main/java/org/apache/dolphinscheduler/plugin/storage/hdfs/HdfsStorageOperator.java

@ -183,9 +183,9 @@ public class HdfsStorageOperator implements Closeable, StorageOperate {
* @return DefaultFS
*/
public String getDefaultFS() {
String defaultFS = getConfiguration().get(Constants.FS_DEFAULT_FS);
String defaultFS = hdfsProperties.getDefaultFS();
if (StringUtils.isBlank(defaultFS)) {
defaultFS = hdfsProperties.getDefaultFS();
defaultFS = getConfiguration().get(Constants.HDFS_DEFAULT_FS);
}
return defaultFS;
}

Loading…
Cancel
Save