[ 
https://issues.apache.org/jira/browse/HIVE-18281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16353050#comment-16353050
 ] 

Prasanth Jayachandran commented on HIVE-18281:
----------------------------------------------

Added /peers endpoint which outputs the following
{code}
{
    "hiveServer2Instances": [
        {
            "host": "localhost",
            "isLeader": true,
            "transportMode": "binary",
            "httpEndpoint": "",
            "properties": {
                "hive.server2.instance.uri": "localhost:49816",
                "hive.server2.authentication": "NONE",
                "hive.server2.transport.mode": "binary",
                "hive.server2.thrift.sasl.qop": "auth",
                "hive.server2.thrift.bind.host": "localhost",
                "hive.server2.thrift.port": "49816",
                "hive.server2.use.SSL": "false",
                "registry.unique.id": "46db281b-6182-4264-9e9d-6c9f99ed3441"
            },
            "workerIdentity": "46db281b-6182-4264-9e9d-6c9f99ed3441",
            "port": 49816
        },
        {
            "host": "localhost",
            "isLeader": false,
            "transportMode": "binary",
            "httpEndpoint": "",
            "properties": {
                "hive.server2.instance.uri": "localhost:49820",
                "hive.server2.authentication": "NONE",
                "hive.server2.transport.mode": "binary",
                "hive.server2.thrift.sasl.qop": "auth",
                "hive.server2.thrift.bind.host": "localhost",
                "hive.server2.thrift.port": "49820",
                "hive.server2.use.SSL": "false",
                "registry.unique.id": "46db281b-6182-4264-9e9d-6c9f99ed3441"
            },
            "workerIdentity": "46db281b-6182-4264-9e9d-6c9f99ed3441",
            "port": 49820
        }
    ]
}
{code}

> HiveServer2 HA for LLAP and Workload Manager
> --------------------------------------------
>
>                 Key: HIVE-18281
>                 URL: https://issues.apache.org/jira/browse/HIVE-18281
>             Project: Hive
>          Issue Type: New Feature
>    Affects Versions: 3.0.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Prasanth Jayachandran
>            Priority: Major
>         Attachments: HIVE-18281.1.patch, HIVE-18281.2.patch, 
> HIVE-18281.WIP.patch, HSI-HA.pdf
>
>
> When running HS2 with LLAP and Workload Manager, HS2 becomes single point of 
> failure as some of the states for workload management and scheduling are 
> maintained in-memory. 
> The proposal is to support Active/Passive mode of high availability in which, 
> all HS2 and tez AMs registers with ZooKeeper and a leader have to be chosen 
> which will maintain stateful information. Clients using service discovery 
> will always connect to the leader for submitting queries. There will also be 
> some responsibilities for the leader, failover handling, tez session 
> reconnect etc. Will upload some more detailed information in a separate doc. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to