<?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: How to Deregister Hiverserver2 from Zookeeper after a crash in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95555#M58914</link>
    <description>&lt;P&gt;Have you tried using zkCli.sh to browse the Zookeeper entries?  I do not know the path for HS2 but you should be able to poke around and find it.  Assuming you can find it, you should be able to delete the entry.  I haven't tried this but I think that is how the entry is registered.&lt;/P&gt;</description>
    <pubDate>Fri, 16 Oct 2015 02:12:50 GMT</pubDate>
    <dc:creator>TerryP</dc:creator>
    <dc:date>2015-10-16T02:12:50Z</dc:date>
    <item>
      <title>How to Deregister Hiverserver2 from Zookeeper after a crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95554#M58913</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/248-screen-shot-2015-10-15-at-22222-pm.png"&gt;&lt;/A&gt;HiveServer2 crashed and wasn't deregistered properly from  Zookeeper.&lt;/P&gt;&lt;P&gt;Now anytime I try restarting HiveServer2, it starts in Ambari, shows green but immediately shutdowns.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/7601i90BDE6C46E5F4A2C/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="screen-shot-2015-10-15-at-21140-pm.png" title="screen-shot-2015-10-15-at-21140-pm.png" /&gt;</description>
      <pubDate>Fri, 16 Oct 2015 02:03:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95554#M58913</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-16T02:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Deregister Hiverserver2 from Zookeeper after a crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95555#M58914</link>
      <description>&lt;P&gt;Have you tried using zkCli.sh to browse the Zookeeper entries?  I do not know the path for HS2 but you should be able to poke around and find it.  Assuming you can find it, you should be able to delete the entry.  I haven't tried this but I think that is how the entry is registered.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 02:12:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95555#M58914</guid>
      <dc:creator>TerryP</dc:creator>
      <dc:date>2015-10-16T02:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Deregister Hiverserver2 from Zookeeper after a crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95556#M58915</link>
      <description>&lt;P&gt;Here is what I did to solve this.&lt;/P&gt;&lt;P&gt;Doublecheck that&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;hive.zookeeper.quorum is set to the ZooKeeper ensemble (a comma separated list of ZooKeeper server host:ports running at the cluster)&lt;/LI&gt;&lt;LI&gt;Set hive.server2.support.dynamic.service.discovery to true&lt;/LI&gt;&lt;LI&gt;Set hive.server2.zookeeper.namespace to the value that you want to use as the root namespace on ZooKeeper. The default value is hiveserver2.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;
Now for what solved this,&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;There was no  hive.zookeeper.session.timeout setting.
Customize hive.zookeeper.session.timeout so that it closes the connection between the HiveServer2’s client and ZooKeeper if a heartbeat is not received within the timeout period.&lt;/LI&gt;&lt;LI&gt;Add hive.zookeeper.session.timeout to 60000 in Ambari -&amp;gt; Hive -&amp;gt; Config -&amp;gt; Advanced -&amp;gt; Custom Hive site&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/250-screen-shot-2015-10-15-at-31727-pm.png"&gt;screen-shot-2015-10-15-at-31727-pm.png&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Restart Hive from Ambari.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://issues.apache.org/jira/browse/HIVE-2328"&gt;hive.zookeeper.session.timeout is set to null in hive-default.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 02:24:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95556#M58915</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2015-10-16T02:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to Deregister Hiverserver2 from Zookeeper after a crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95557#M58916</link>
      <description>&lt;P&gt;The HS2 instances register with ZooKeeper under a namespace. When a HiveServer2 instance comes up, it registers itself with ZooKeeper by adding a znode in Zookeeper. The znode name has the format: &lt;/P&gt;&lt;PRE&gt;/&amp;lt;hiveserver2_namespace&amp;gt;/serverUri=&amp;lt;host:port&amp;gt;;version=&amp;lt;versionInfo&amp;gt;; sequence=&amp;lt;sequence_number&amp;gt;&lt;/PRE&gt;&lt;P&gt;To de-register a single HiveServer2, enter &lt;/P&gt;&lt;PRE&gt;hive --service hiveserver2 --deregister &amp;lt;package ID&amp;gt;&lt;/PRE&gt;&lt;P&gt;You can find more information about HiverServer2 within Zookeeper on &lt;A target="_blank" href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hadoop-ha/content/ha-hs2-service-discovery.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_hadoop-ha/content/ha-hs2-service-discovery.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2015 02:26:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95557#M58916</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-10-16T02:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to Deregister Hiverserver2 from Zookeeper after a crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95558#M58917</link>
      <description>&lt;BLOCKQUOTE&gt;hive --service hiveserver2 --deregister &amp;lt;Package ID&amp;gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How do I find the package id for the hiveserver2?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Manish&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 03:57:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95558#M58917</guid>
      <dc:creator>manishsingh2k</dc:creator>
      <dc:date>2018-02-02T03:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to Deregister Hiverserver2 from Zookeeper after a crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95559#M58918</link>
      <description>&lt;P&gt;Nevermind! Found a method to pull the hiveserver2 out of the zookeeper ensemble by deleting its znode using zookeeper client.&lt;/P&gt;&lt;P&gt;Here's the info from MapR's &lt;A href="https://maprdocs.mapr.com/52/Hive/HighAvailability-HiveServer2.html"&gt;website&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 07:18:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-Deregister-Hiverserver2-from-Zookeeper-after-a-crash/m-p/95559#M58918</guid>
      <dc:creator>manishsingh2k</dc:creator>
      <dc:date>2018-02-02T07:18:15Z</dc:date>
    </item>
  </channel>
</rss>

