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

Prasanth Jayachandran commented on HIVE-18982:
----------------------------------------------

Output of CLI commands

{code:title=hive --service hiveserver2 --listHAPeers}
{
  "hiveServer2Instances" : [ {
    "host" : "localhost",
    "rpcPort" : 10003,
    "workerIdentity" : "b98b7faa-c35a-43e3-b6be-d51c75f7524e",
    "properties" : {
      "hive.server2.instance.uri" : "localhost:10003",
      "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" : "10003",
      "hive.server2.use.SSL" : "false",
      "registry.unique.id" : "b98b7faa-c35a-43e3-b6be-d51c75f7524e",
      "hive.server2.webui.port" : "10030"
    },
    "transportMode" : "binary",
    "httpEndpoint" : "",
    "leader" : true
  }, {
    "host" : "localhost",
    "rpcPort" : 10002,
    "workerIdentity" : "38067edc-62ad-4be1-9d3c-718f241b76b4",
    "properties" : {
      "hive.server2.instance.uri" : "localhost:10002",
      "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" : "10002",
      "hive.server2.use.SSL" : "false",
      "registry.unique.id" : "38067edc-62ad-4be1-9d3c-718f241b76b4",
      "hive.server2.webui.port" : "10020"
    },
    "transportMode" : "binary",
    "httpEndpoint" : "",
    "leader" : false
  }, {
    "host" : "localhost",
    "rpcPort" : 10004,
    "workerIdentity" : "ad296e8c-73dc-4f8c-b4d5-9487c125b8ef",
    "properties" : {
      "hive.server2.instance.uri" : "localhost:10004",
      "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" : "10004",
      "hive.server2.use.SSL" : "false",
      "registry.unique.id" : "ad296e8c-73dc-4f8c-b4d5-9487c125b8ef",
      "hive.server2.webui.port" : "10040"
    },
    "transportMode" : "binary",
    "httpEndpoint" : "",
    "leader" : false
  } ]
}
{code}

{code:title=hive --service hiveserver2 --failover 
b98b7faa-c35a-43e3-b6be-d51c75f7524e}
{  "success" : true,  "message" : "Failover successful!"}
{code}

> Provide a CLI option to manually trigger failover
> -------------------------------------------------
>
>                 Key: HIVE-18982
>                 URL: https://issues.apache.org/jira/browse/HIVE-18982
>             Project: Hive
>          Issue Type: Sub-task
>          Components: HiveServer2
>    Affects Versions: 3.0.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Prasanth Jayachandran
>            Priority: Major
>         Attachments: HIVE-18982.1.patch, HIVE-18982.2.patch
>
>
> HIVE-18281 added active-passive HA. There might be a administrative need to 
> trigger a manual failover of HS2 Active server. Add command line tool to view 
> list of all HS2 instances and trigger manual failover (only under force 
> mode). The clients currently connected to active HS2 will be closed. In 
> future, more options to existing clients connections can be handled via 
> configs/options (like wait until timeout, wait until current sessions are 
> closed etc.)



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

Reply via email to