<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Process for forcing a failover for Hive service in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96753#M10265</link>
    <description>&lt;P&gt;Hive has two services - Hive Metastore and HiveServer2.&lt;/P&gt;&lt;P&gt;Multiple Hive Metastore processes can be started and specified in the hive.metastore.uris. I believe the clients pick up the first active one from the list.&lt;/P&gt;&lt;P&gt;Multiple HiveServer2 instances can be restarted and they register with the Zookeeper. The client will randomly pick one and connect to it.&lt;/P&gt;&lt;P&gt;In either case once a client session has been initiated, killing/shutting down will invalidate the client session needing the client to reconnect. For HiveServer2 however you can gracefully shut an instance using the &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_hadoop-ha/content/ha-hs2-service-discovery.html"&gt;deregister command&lt;/A&gt;. When a HiveServer2 instance is de-registered, it is removed from the list of servers available for new client connections. (Client sessions on the server are not affected). When the last client session on a server is closed, the server is closed.&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2015 00:32:08 GMT</pubDate>
    <dc:creator>deepesh1</dc:creator>
    <dc:date>2015-11-10T00:32:08Z</dc:date>
    <item>
      <title>Process for forcing a failover for Hive service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96751#M10263</link>
      <description>&lt;P&gt;Is there a documented process for forcing a failover for the Hive Service in an HDP cluster with HA enabled ?  In particular I am looking to see if this process can be automated - so is there is a command that can be invoked by CLI and/or API?  &lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 06:18:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96751#M10263</guid>
      <dc:creator>vnair</dc:creator>
      <dc:date>2015-11-09T06:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Process for forcing a failover for Hive service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96752#M10264</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/276/vnair.html" nodeid="276"&gt;@vnair@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If an HS2 instance failed while a client is connected, the session is lost. Since this situation need to be handed at the client,&lt;STRONG&gt; there is no automatic failover&lt;/STRONG&gt;; the client needs to reconnect using ZooKeeper.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_hadoop-ha/content/ha-hs2-requests.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_hadoop-ha/content/ha-hs2-requests.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2015 08:47:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96752#M10264</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-09T08:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Process for forcing a failover for Hive service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96753#M10265</link>
      <description>&lt;P&gt;Hive has two services - Hive Metastore and HiveServer2.&lt;/P&gt;&lt;P&gt;Multiple Hive Metastore processes can be started and specified in the hive.metastore.uris. I believe the clients pick up the first active one from the list.&lt;/P&gt;&lt;P&gt;Multiple HiveServer2 instances can be restarted and they register with the Zookeeper. The client will randomly pick one and connect to it.&lt;/P&gt;&lt;P&gt;In either case once a client session has been initiated, killing/shutting down will invalidate the client session needing the client to reconnect. For HiveServer2 however you can gracefully shut an instance using the &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.2/bk_hadoop-ha/content/ha-hs2-service-discovery.html"&gt;deregister command&lt;/A&gt;. When a HiveServer2 instance is de-registered, it is removed from the list of servers available for new client connections. (Client sessions on the server are not affected). When the last client session on a server is closed, the server is closed.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 00:32:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96753#M10265</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-11-10T00:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Process for forcing a failover for Hive service</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96754#M10266</link>
      <description>&lt;P&gt;In our setup, we run queries with a client that connects to HS2. &lt;/P&gt;&lt;P&gt;For deployment, if I deregister HS2 from ZK then it starts shutdown of the JVM, and shuts the port for checking query progress, leading for the client to retry. &lt;/P&gt;&lt;P&gt;Is there any way, I can do deployment without impacting jobs. e.g. deregister from ZK and all running queries are running and connection are maintained. Stop accepting a new request. So when the query is finished I can deploy.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 16:58:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Process-for-forcing-a-failover-for-Hive-service/m-p/96754#M10266</guid>
      <dc:creator>guptashailesh92</dc:creator>
      <dc:date>2019-02-08T16:58:33Z</dc:date>
    </item>
  </channel>
</rss>

