<?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: HiveServer 2 goes down in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169745#M49964</link>
    <description>&lt;P&gt;Login to zk command line using zkCli.sh and after logging in check the contents of Hiveserver2 znode and in my case it is [ ], empty.&lt;/P&gt;&lt;P&gt;Delete the HS2 znode using del command and restart HS2 again.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2017 18:07:47 GMT</pubDate>
    <dc:creator>vishwanath_voru</dc:creator>
    <dc:date>2017-03-17T18:07:47Z</dc:date>
    <item>
      <title>HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169737#M49956</link>
      <description>&lt;P&gt;Hive server 2 goes down in our environment within 5 minutes of bringing it up with the following error, any thoughts&lt;/P&gt;&lt;PRE&gt;2016-12-22 13:17:31,526 FATAL [main]: server.HiveServer2 (HiveServer2.java:addServerInstanceToZooKeeper(236)) - Unable to create a znode for this server instance
java.lang.Exception: Max znode creation wait time: 120s exhausted
        at org.apache.hive.service.server.HiveServer2.addServerInstanceToZooKeeper(HiveServer2.java:225)
        at org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:417)
        at org.apache.hive.service.server.HiveServer2.access$700(HiveServer2.java:78)
        at org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:654)
        at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:527)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
2016-12-22 13:17:31,531 INFO  [main]: server.HiveServer2 (HiveServer2.java:stop(371)) - Shutting down HiveServer2
2016-12-22 13:17:31,531 INFO  [main]: thrift.ThriftCLIService (ThriftCLIService.java:stop(199)) - Thrift server has stopped
2016-12-22 13:17:31,531 INFO  [main]: service.AbstractService (AbstractService.java:stop(125)) - Service:ThriftBinaryCLIService is stopped.
2016-12-22 13:17:31,532 INFO  [main]: service.AbstractService (AbstractService.java:stop(125)) - Service:OperationManager is stopped.
2016-12-22 13:17:31,532 INFO  [main]: service.AbstractService (AbstractService.java:stop(125)) - Service:SessionManager is stopped.
2016-12-22 13:17:41,533 INFO  [main]: service.AbstractService (AbstractService.java:stop(125)) - Service:CLIService is stopped.
2016-12-22 13:17:41,534 INFO  [main]: service.AbstractService (AbstractService.java:stop(125)) - Service:HiveServer2 is stopped.
2016-12-22 13:17:41,544 INFO  [main]: zookeeper.ZooKeeper (ZooKeeper.java:close(684)) - Session: 0x358a9c9199506a2 closed
2016-12-22 13:17:41,545 INFO  [main]: server.HiveServer2 (HiveServer2.java:removeServerInstanceFromZooKeeper(338)) - Server instance removed from ZooKeeper.
2016-12-22 13:17:41,545 WARN  [main]: server.HiveServer2 (HiveServer2.java:startHiveServer2(442)) - Error starting HiveServer2 on attempt 1, will retry in 60 seconds
java.lang.Exception: Max znode creation wait time: 120s exhausted
        at org.apache.hive.service.server.HiveServer2.addServerInstanceToZooKeeper(HiveServer2.java:225)
        at org.apache.hive.service.server.HiveServer2.startHiveServer2(HiveServer2.java:417)
        at org.apache.hive.service.server.HiveServer2.access$700(HiveServer2.java:78)
        at org.apache.hive.service.server.HiveServer2$StartOptionExecutor.execute(HiveServer2.java:654)
        at org.apache.hive.service.server.HiveServer2.main(HiveServer2.java:527)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
2016-12-22 13:17:41,546 INFO  [main-EventThread]: zookeeper.ClientCnxn (ClientCnxn.java:run(524)) - EventThread shut down
2016-12-22 13:18:33,625 INFO  [Thread-4]: server.HiveServer2 (HiveStringUtils.java:run(709)) - SHUTDOWN_MSG:
/************************************************************
SHUTDOWN_MSG: Shutting down HiveServer2 at abc.solutions.local/172.16.3.196
************************************************************/
2016-12-22 13:18:33,631 INFO  [Thread-7]: server.HiveServer2 (HiveServer2.java:stop(371)) - Shutting down HiveServer2
2016-12-22 13:18:33,632 INFO  [Thread-7]: server.HiveServer2 (HiveServer2.java:removeServerInstanceFromZooKeeper(338)) - Server instance removed from ZooKeeper&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:02:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169737#M49956</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-12-23T15:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169738#M49957</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt;&lt;P&gt;it looks hiveserver2 is not able to create zk node in zookeeper, it could be issue at zookeeper side &lt;/P&gt;&lt;P&gt;could you please check whether zk node got created or not using&lt;/P&gt;&lt;P&gt;/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server localhost:2181 &lt;/P&gt;&lt;P&gt;ls /hiveserver2&lt;/P&gt;&lt;P&gt;see if you have issue with zookeeper server.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:08:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169738#M49957</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-12-23T15:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169739#M49958</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt;&lt;P&gt;Looks like there is an issue with zookeeper. Can you please share zookeeper logs and look for any errors&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:11:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169739#M49958</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2016-12-23T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169740#M49959</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/8919/rajkumarsingh.html" nodeid="8919"&gt;@Rajkumar Singh&lt;/A&gt;, this is what i see in the ZK&lt;/P&gt;&lt;P&gt;[zk: localhost(CONNECTED) 1] ls /hiveserver2
[serverUri=abcd.solutions.local:10000;version=1.2.1000.2.4.0.0-169;sequence=0000000000]&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:18:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169740#M49959</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-12-23T15:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169741#M49960</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt; &lt;/P&gt;&lt;P&gt;is this a standalone zk or running zk quorum?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:22:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169741#M49960</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-12-23T15:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169742#M49961</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/8919/rajkumarsingh.html" nodeid="8919"&gt;@Rajkumar Singh&lt;/A&gt;&lt;P&gt;it is  a quorum of 3 servers&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:26:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169742#M49961</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-12-23T15:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169743#M49962</link>
      <description>&lt;P&gt;could you please attach complete hiveserver2 logs, it looks hs2 is not able to create zknode, this could be kerberos issue if you running in secure env or there might be zookeeper database inconsisency.&lt;/P&gt;&lt;P&gt;to rule out zk database inconsistencies you can try&lt;/P&gt;&lt;P&gt;stop all services which are using zk&lt;/P&gt;&lt;P&gt;change ZooKeeper directory location after browsing ambari=&amp;gt; zookeeper=&amp;gt; conf, by default it is /hadoop/zookeeper&lt;/P&gt;&lt;P&gt;start all reservices&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:34:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169743#M49962</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-12-23T15:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169744#M49963</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/8919/rajkumarsingh.html" nodeid="8919"&gt;@Rajkumar Singh&lt;/A&gt;, i removed the znode /hiveserver2 from zk after stopping hive service. restarted again.it is running fine for more than 20 mins. Let me see what happens. Thanks for your help&lt;/P&gt;</description>
      <pubDate>Fri, 23 Dec 2016 15:45:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169744#M49963</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-12-23T15:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169745#M49964</link>
      <description>&lt;P&gt;Login to zk command line using zkCli.sh and after logging in check the contents of Hiveserver2 znode and in my case it is [ ], empty.&lt;/P&gt;&lt;P&gt;Delete the HS2 znode using del command and restart HS2 again.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2017 18:07:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169745#M49964</guid>
      <dc:creator>vishwanath_voru</dc:creator>
      <dc:date>2017-03-17T18:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169746#M49965</link>
      <description>&lt;P&gt;Yes, it is working after Delete the HS2 znode using del command and restart HS2.&lt;/P&gt;</description>
      <pubDate>Tue, 09 May 2017 18:20:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169746#M49965</guid>
      <dc:creator>liulixia</dc:creator>
      <dc:date>2017-05-09T18:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169747#M49966</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I am also facing same issue. After login into zk command like. I could only see below content. I can't see HS2 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[zk: localhost:2181(CONNECTED) 10] ls / &lt;/P&gt;&lt;P&gt;[registry, ambari-metrics-cluster, zookeeper, zk_smoketest, rmstore] &lt;/P&gt;&lt;P&gt;[zk: localhost:2181(CONNECTED) 11]&lt;/P&gt;&lt;P&gt;Could you Please help me on this?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I was starting HiveServer2 first time after installation I got below error. Tried multiple times but HS2 was never able to start.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/decorator.py", line 54, in wrapper&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;return function(*args, **kwargs)&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_service.py", line 189, in wait_for_znode&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;raise Fail(format("ZooKeeper node /{hive_server2_zookeeper_namespace} is not ready yet"))&lt;/P&gt;&lt;P&gt;Fail: ZooKeeper node /hiveserver2 is not ready yet&lt;/P&gt;&lt;P&gt;The above exception was the cause of the following exception:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_server.py", line 137, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;HiveServer().execute()&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, in execute&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;method(env)&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 993, in restart&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;self.start(env, upgrade_type=upgrade_type)&lt;/P&gt;&lt;P&gt;File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_server.py", line 53, in start&lt;/P&gt;&lt;P&gt;hive_service('hiveserver2', action = 'start', upgrade_type=upgrade_type)&lt;/P&gt;&lt;P&gt;File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_service.py", line 101, in hive_service&lt;/P&gt;&lt;P&gt;wait_for_znode()&lt;/P&gt;&lt;P&gt;File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/decorator.py", line 62, in wrapper&lt;/P&gt;&lt;P&gt;return function(*args, **kwargs)&lt;/P&gt;&lt;P&gt;File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/scripts/hive_service.py", line 189, in wait_for_znode&lt;/P&gt;&lt;P&gt;raise Fail(format("ZooKeeper node /{hive_server2_zookeeper_namespace} is not ready yet"))&lt;/P&gt;&lt;P&gt;resource_management.core.exceptions.Fail: ZooKeeper node /hiveserver2 is not ready yet&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 08:51:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/169747#M49966</guid>
      <dc:creator>er_sharma_shant</dc:creator>
      <dc:date>2018-09-14T08:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer 2 goes down</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/372905#M49967</link>
      <description>&lt;P&gt;i got the same problem.&lt;/P&gt;&lt;P&gt;When I reinstalled hive, everything worked.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 12:00:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer-2-goes-down/m-p/372905#M49967</guid>
      <dc:creator>xiamu</dc:creator>
      <dc:date>2023-06-19T12:00:01Z</dc:date>
    </item>
  </channel>
</rss>

