<?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 Hiveserver2 not starting in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/288837#M213893</link>
    <description>&lt;P&gt;It seems hiveserver2 can't connect to hive metastore,&lt;/P&gt;&lt;P&gt;here is my log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020-01-31T15:47:46,804 INFO  [main]: metastore.HiveMetaStoreClient (:()) - Closed a connection to metastore, current connections: 0
2020-01-31T15:47:46,804 INFO  [main]: metastore.HiveMetaStoreClient (:()) - Trying to connect to metastore with URI thrift://novalinq-server:9083
2020-01-31T15:47:46,805 INFO  [main]: metastore.HiveMetaStoreClient (:()) - Opened a connection to metastore, current connections: 1
2020-01-31T15:47:46,806 INFO  [main]: metastore.HiveMetaStoreClient (:()) - Connected to metastore.
2020-01-31T15:47:46,814 WARN  [main]: metastore.RetryingMetaStoreClient (:()) - MetaStoreClient lost connection. Attempting to reconnect (8 of 24) after 5s.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My jbdc is:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="endpoint-value"&gt;jdbc:hive2://novalinq-server:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="endpoint-value"&gt;And the last error hiveserver2 gives me is:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        Connection failed on host novalinq-server:10000 (Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/alerts/alert_hive_thrift_port.py", line 204, in execute
    ldap_password=ldap_password)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/hive_check.py", line 84, in check_thrift_port_sasl
    timeout_kill_strategy=TerminateStrategy.KILL_PROCESS_TREE,
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
    returns=self.resource.returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of 'beeline -n hive -u 'jdbc:hive2://novalinq-server:10000/;transportMode=binary'  -e ';' 2&amp;gt;&amp;amp;1 | awk '{print}' | grep -i -e 'Connected to:' -e 'Transaction isolation:'' returned 1. 
)
      &lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 31 Jan 2020 15:06:29 GMT</pubDate>
    <dc:creator>dewi</dc:creator>
    <dc:date>2020-01-31T15:06:29Z</dc:date>
    <item>
      <title>Hiveserver2 not starting</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/288837#M213893</link>
      <description>&lt;P&gt;It seems hiveserver2 can't connect to hive metastore,&lt;/P&gt;&lt;P&gt;here is my log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;2020-01-31T15:47:46,804 INFO  [main]: metastore.HiveMetaStoreClient (:()) - Closed a connection to metastore, current connections: 0
2020-01-31T15:47:46,804 INFO  [main]: metastore.HiveMetaStoreClient (:()) - Trying to connect to metastore with URI thrift://novalinq-server:9083
2020-01-31T15:47:46,805 INFO  [main]: metastore.HiveMetaStoreClient (:()) - Opened a connection to metastore, current connections: 1
2020-01-31T15:47:46,806 INFO  [main]: metastore.HiveMetaStoreClient (:()) - Connected to metastore.
2020-01-31T15:47:46,814 WARN  [main]: metastore.RetryingMetaStoreClient (:()) - MetaStoreClient lost connection. Attempting to reconnect (8 of 24) after 5s.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My jbdc is:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="endpoint-value"&gt;jdbc:hive2://novalinq-server:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="endpoint-value"&gt;And the last error hiveserver2 gives me is:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;        Connection failed on host novalinq-server:10000 (Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/HIVE/package/alerts/alert_hive_thrift_port.py", line 204, in execute
    ldap_password=ldap_password)
  File "/usr/lib/ambari-agent/lib/resource_management/libraries/functions/hive_check.py", line 84, in check_thrift_port_sasl
    timeout_kill_strategy=TerminateStrategy.KILL_PROCESS_TREE,
  File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
    self.env.run()
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
    self.run_action(resource, action)
  File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
    provider_action()
  File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
    returns=self.resource.returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
    result = function(command, **kwargs)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
    tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
    raise ExecutionFailed(err_msg, code, out, err)
ExecutionFailed: Execution of 'beeline -n hive -u 'jdbc:hive2://novalinq-server:10000/;transportMode=binary'  -e ';' 2&amp;gt;&amp;amp;1 | awk '{print}' | grep -i -e 'Connected to:' -e 'Transaction isolation:'' returned 1. 
)
      &lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 15:06:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/288837#M213893</guid>
      <dc:creator>dewi</dc:creator>
      <dc:date>2020-01-31T15:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hiveserver2 not starting</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/289146#M214076</link>
      <description>&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/73427"&gt;@dewi&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;If HS2 was unable to connect to HMS, then you should check HMS log as well. What error is reported over there?&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Eric</description>
      <pubDate>Wed, 05 Feb 2020 07:34:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/289146#M214076</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2020-02-05T07:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Hiveserver2 not starting</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/289152#M214081</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I solved my problem.&lt;BR /&gt;&lt;BR /&gt;Hadoop-proxyuser-hive wasn’t set to * and I had to add a an additional setup feature in the costum hive-site.xml.&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply!&lt;BR /&gt;</description>
      <pubDate>Wed, 05 Feb 2020 08:33:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/289152#M214081</guid>
      <dc:creator>dewi</dc:creator>
      <dc:date>2020-02-05T08:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hiveserver2 not starting</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/289162#M214089</link>
      <description>Glad it works now, thanks for sharing.&lt;BR /&gt;&lt;BR /&gt;Cheers</description>
      <pubDate>Wed, 05 Feb 2020 09:42:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hiveserver2-not-starting/m-p/289162#M214089</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2020-02-05T09:42:33Z</dc:date>
    </item>
  </channel>
</rss>

