This is an automated email from the ASF dual-hosted git repository.
dengzh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git
The following commit(s) were added to refs/heads/master by this push:
new 169cb8d597d HIVE-28604: Allow HMS to configure the DataNucleus level 1
cache (#5528) (Zhihua Deng, reviewed by Soumyakanti Das, Sai Hemanth Gantasala,
Naveen Gangam)
169cb8d597d is described below
commit 169cb8d597d2bc449466329dfa7804b7e73d286d
Author: dengzh <[email protected]>
AuthorDate: Wed Nov 6 07:57:11 2024 +0800
HIVE-28604: Allow HMS to configure the DataNucleus level 1 cache (#5528)
(Zhihua Deng, reviewed by Soumyakanti Das, Sai Hemanth Gantasala, Naveen Gangam)
---
.../java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
index 713a45aa6f7..a27568b80c9 100644
---
a/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
+++
b/standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
@@ -724,6 +724,9 @@ public class MetastoreConf {
DATANUCLEUS_AUTOSTART("datanucleus.autoStartMechanismMode",
"datanucleus.autoStartMechanismMode", "ignored", new
StringSetValidator("ignored"),
"Autostart mechanism for datanucleus. Currently ignored is the only
option supported."),
+ DATANUCLEUS_CACHE_LEVEL1_TYPE("datanucleus.cache.level1.type",
"datanucleus.cache.level1.type", "soft",
+ "Stores instances within a PersistenceManager, there are
DataNucleus-provided plugins for weak, soft, strong referenced caches, \n" +
+ "none to turn off this cache."),
DATANUCLEUS_CACHE_LEVEL2("datanucleus.cache.level2",
"datanucleus.cache.level2", false,
"Use a level 2 cache. Turn this off if metadata is changed
independently of Hive metastore server"),
DATANUCLEUS_CACHE_LEVEL2_TYPE("datanucleus.cache.level2.type",
@@ -2047,6 +2050,7 @@ public class MetastoreConf {
ConfVars.CONNECT_URL_KEY,
ConfVars.CONNECTION_USER_NAME,
ConfVars.DATANUCLEUS_AUTOSTART,
+ ConfVars.DATANUCLEUS_CACHE_LEVEL1_TYPE,
ConfVars.DATANUCLEUS_CACHE_LEVEL2,
ConfVars.DATANUCLEUS_CACHE_LEVEL2_TYPE,
ConfVars.DATANUCLEUS_INIT_COL_INFO,