This is an automated email from the ASF dual-hosted git repository.

sankarh pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/branch-3 by this push:
     new 932328be792 HIVE-27387: Backport of HIVE-23046: Separate housekeeping 
thread from initiator flag (Laszlo Pinter, reviewed by Peter Vary)
932328be792 is described below

commit 932328be792d952233f4b8c412eddd5ff1272dec
Author: Diksha628 <43694846+diksha...@users.noreply.github.com>
AuthorDate: Wed Jun 7 20:53:23 2023 +0530

    HIVE-27387: Backport of HIVE-23046: Separate housekeeping thread from 
initiator flag (Laszlo Pinter, reviewed by Peter Vary)
    
    Signed-off-by: Sankar Hariappan <sank...@apache.org>
    Closes (#4367)
---
 .../main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java   | 2 +-
 .../java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java   | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
 
b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
index 629666ac000..c7b2dcf7d68 100644
--- 
a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
+++ 
b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java
@@ -9601,7 +9601,7 @@ public class HiveMetaStore extends ThriftHiveMetastore {
   }
 
   private static void startRemoteOnlyTasks(Configuration conf) throws 
Exception {
-    if(!MetastoreConf.getBoolVar(conf, ConfVars.COMPACTOR_INITIATOR_ON)) {
+    if(!MetastoreConf.getBoolVar(conf, 
ConfVars.METASTORE_HOUSEKEEPING_THREADS_ON)) {
       return;
     }
 
diff --git 
a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
 
b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
index e89025e35d7..322edf10d93 100644
--- 
a/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
+++ 
b/standalone-metastore/src/main/java/org/apache/hadoop/hive/metastore/conf/MetastoreConf.java
@@ -356,6 +356,12 @@ public class MetastoreConf {
         new RangeValidator(1, 20), "Number of consecutive compaction failures 
(per table/partition) " +
         "after which automatic compactions will not be scheduled any more.  
Note that this must be less " +
         "than hive.compactor.history.retention.failed."),
+    METASTORE_HOUSEKEEPING_THREADS_ON("metastore.housekeeping.threads.on",
+        "hive.metastore.housekeeping.threads.on", true,
+        "Whether to run the tasks under metastore.task.threads.remote on this 
metastore instance or not.\n" +
+            "Set this to true on one instance of the Thrift metastore service 
as part of turning\n" +
+            "on Hive transactions. For a complete list of parameters required 
for turning on\n" +
+            "transactions, see hive.txn.manager."),
     COMPACTOR_INITIATOR_ON("metastore.compactor.initiator.on", 
"hive.compactor.initiator.on", false,
         "Whether to run the initiator and cleaner threads on this metastore 
instance or not.\n" +
             "Set this to true on one instance of the Thrift metastore service 
as part of turning\n" +

Reply via email to