From 5e6cd8749e2bbe26f739ce6a9e3e8176fa0deb99 Mon Sep 17 00:00:00 2001 From: Socrates Date: Thu, 26 Sep 2024 22:34:16 +0800 Subject: [PATCH] [branch-2.1](hudi) fix fe memory leak(#41256) (#41225) bp #41256 --- .../datasource/hive/HiveMetaStoreClientHelper.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java index c086172f1f..531676367f 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java +++ b/fe/fe-core/src/main/java/org/apache/doris/datasource/hive/HiveMetaStoreClientHelper.java @@ -67,7 +67,6 @@ import org.apache.hudi.common.table.TableSchemaResolver; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; -import java.net.URI; import java.security.PrivilegedExceptionAction; import java.time.LocalDateTime; import java.time.ZoneId; @@ -829,15 +828,6 @@ public class HiveMetaStoreClientHelper { public static HoodieTableMetaClient getHudiClient(HMSExternalTable table) { String hudiBasePath = table.getRemoteTable().getSd().getLocation(); Configuration conf = getConfiguration(table); - if (LOG.isDebugEnabled()) { - LOG.debug("try setting 'fs.xxx.impl.disable.cache' to true for hudi's base path: {}", hudiBasePath); - } - URI hudiBasePathUri = URI.create(hudiBasePath); - String scheme = hudiBasePathUri.getScheme(); - if (!Strings.isNullOrEmpty(scheme)) { - // Avoid using Cache in Hadoop FileSystem, which may cause FE OOM. - conf.set("fs." + scheme + ".impl.disable.cache", "true"); - } return HadoopUGI.ugiDoAs(AuthenticationConfig.getKerberosConfig(conf), () -> HoodieTableMetaClient.builder().setConf(conf).setBasePath(hudiBasePath).build()); }