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

defaultFS key from FS_DEFAULT_FS to HDFS_DEFAULT_FS
This commit is contained in:
zhaifengbing 2023-04-20 14:24:22 +08:00 committed by GitHub
parent 53bcf11dcf
commit 3305d6d127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}