[fix](multi-catalog)add properties converter fe ut (#27254)

This commit is contained in:
slothever
2023-11-29 19:01:29 +08:00
committed by GitHub
parent 573f0eaad9
commit c99eb5d80f
3 changed files with 245 additions and 0 deletions

View File

@ -131,6 +131,7 @@ public class S3Util {
if (StringUtils.isNotEmpty(host)) {
// Replace 'hdfs://key/' to 'hdfs://name_service/key/'
// Or hdfs:///abc to hdfs://name_service/abc
// TODO: check host in path when the 'dfs.nameservices' has multiple hosts
return location.replace(normalizedPrefix, normalizedPrefix + host + "/");
} else {
// 'hdfs://null/' equals the 'hdfs:///'