This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-1.2-lts
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.2-lts by this push:
new 809defc515a [Improvement](iceberg) add switch to controll whether load
default hdfs conf when creating hms client (#26124)
809defc515a is described below
commit 809defc515a8a92ac8d7ef46146f98ade17afcc4
Author: Yulei-Yang <[email protected]>
AuthorDate: Tue Oct 31 09:27:14 2023 +0800
[Improvement](iceberg) add switch to controll whether load default hdfs
conf when creating hms client (#26124)
---
fe/fe-common/src/main/java/org/apache/doris/common/Config.java | 6 ++++++
.../java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
index e11a4963adb..edfd56c522c 100644
--- a/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
+++ b/fe/fe-common/src/main/java/org/apache/doris/common/Config.java
@@ -1881,6 +1881,12 @@ public class Config extends ConfigBase {
@ConfField(mutable = true, masterOnly = false)
public static long hive_metastore_client_timeout_second = 10;
+ /**
+ * Whether to load default config files when creating hive metastore
client.
+ */
+ @ConfField(mutable = true, masterOnly = false)
+ public static boolean load_default_conf_for_hms_client = true;
+
/**
* Used to determined how many statistics collection SQL could run
simultaneously.
*/
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
b/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
index adf5dccc0ad..963e106d8ec 100644
---
a/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
+++
b/fe/fe-core/src/main/java/org/apache/doris/catalog/HiveMetaStoreClientHelper.java
@@ -834,7 +834,7 @@ public class HiveMetaStoreClientHelper {
}
public static Configuration getConfiguration(HMSExternalTable table) {
- Configuration conf = new HdfsConfiguration();
+ Configuration conf = new
HdfsConfiguration(Config.load_default_conf_for_hms_client);
for (Map.Entry<String, String> entry :
table.getHadoopProperties().entrySet()) {
conf.set(entry.getKey(), entry.getValue());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]