[ 
https://issues.apache.org/jira/browse/HIVE-27259?focusedWorklogId=856740&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-856740
 ]

ASF GitHub Bot logged work on HIVE-27259:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 13/Apr/23 12:42
            Start Date: 13/Apr/23 12:42
    Worklog Time Spent: 10m 
      Work Description: dengzhhu653 commented on PR #4232:
URL: https://github.com/apache/hive/pull/4232#issuecomment-1506898061

   We have implemented the lease/host based leader election in HMS, 
     
https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/leader/LeaderElection.java
   
https://github.com/apache/hive/blob/master/standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/leader/LeaseLeaderElection.java
   
   could you please check that?




Issue Time Tracking
-------------------

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

> Enhancing Hive Metastore common library support for Leader Election
> -------------------------------------------------------------------
>
>                 Key: HIVE-27259
>                 URL: https://issues.apache.org/jira/browse/HIVE-27259
>             Project: Hive
>          Issue Type: Improvement
>          Components: Standalone Metastore
>            Reporter: Subhasis Gorai
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> I couldn't find Leader Election support in Hive metastore foundational 
> libraries.
> In a distributed environment, we often need to select a node as the leader to 
> coordinate the execution of complex jobs. Working on a Hive Replication 
> enhancement where we need to spawn threads with specialized work but we need 
> to make sure that such an HS2 thread is running strictly on a single HS2 
> instance at a given moment.
> We need to enhance HMS common libraries to include the 'Leader Election' 
> recipe.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to