hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Work logged] (HIVE-21841) Leader election in HMS to run housekeeping tasks.
Date Mon, 17 Jun 2019 05:17:01 GMT


ASF GitHub Bot logged work on HIVE-21841:

                Author: ASF GitHub Bot
            Created on: 17/Jun/19 05:16
            Start Date: 17/Jun/19 05:16
    Worklog Time Spent: 10m 
      Work Description: maheshk114 commented on pull request #668: HIVE-21841 : Add configuration
to specify the hostname of HMS leader …to run housekeeping tasks in.

 File path: standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/conf/
 @@ -386,6 +386,12 @@ public static ConfVars getMetaConf(String name) {
         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_LEADER_HOSTNAME("metastore.housekeeping.leader.hostname",
+            "hive.metastore.housekeeping.leader.hostname", "",
+"If there are multiple Thrift metastore services running, the hostname of Thrift metastore
" +
+        "service to run housekeeping tasks at. By default this values is empty, which " +
+        "means that the current metastore will run the housekeeping tasks. This value should
" +
+        "match that of configuration of the leader HMS, if set."),
 Review comment:
   its also using the getLocalHost() to match with the housekeeping.leader.hostname
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

Issue Time Tracking

    Worklog Id:     (was: 261143)
    Time Spent: 20m  (was: 10m)

> Leader election in HMS to run housekeeping tasks.
> -------------------------------------------------
>                 Key: HIVE-21841
>                 URL:
>             Project: Hive
>          Issue Type: New Feature
>    Affects Versions: 4.0.0
>            Reporter: Ashutosh Bapat
>            Assignee: Ashutosh Bapat
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>         Attachments: HIVE-21841.01.patch, HIVE-21841.02.patch
>          Time Spent: 20m
>  Remaining Estimate: 0h
> HMS performs housekeeping tasks. When there are multiple HMSes we need to have a leader
HMS elected which will carry out those housekeeping tasks. 
> These tasks include execution of compaction tasks, auto-discovering partitions for external
tables, generation of compaction tasks, repl thread etc.
> Note that, though the code for compaction tasks, auto-discovery of partitions etc. is
in Hive, the actual tasks are initiated by an HMS configured to do so. So, leader election
is required only for HMS and not for HS2.

This message was sent by Atlassian JIRA

View raw message