<?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 may be unavailable in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/52982#M58628</link>
    <description>&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.9.1-1.cdh5.9.1.p0.4/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/11/yarn/nm/filecache/4718/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Connecting to xxx/
Connected to: Apache Hive (version 1.1.0-cdh5.9.1)
Driver: Hive JDBC (version 1.1.0-cdh5.9.1)
Transaction isolation: TRANSACTION_REPEATABLE_READ
No rows affected (0.479 seconds)
No rows affected (0.003 seconds)
No rows affected (0.003 seconds)
No rows affected (0.003 seconds)
No rows affected (0.003 seconds)
No rows affected (0.002 seconds)
No rows affected (0.003 seconds)
HS2 may be unavailable, check server status
Error: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe (state=08S01,code=0)
Closing: 0: xxx/
HS2 may be unavailable, check server status
Error: Error while cleaning up the server resources (state=,code=0)
Intercepting System.exit(2)
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have series of hive actions in a oozie workflow and I am getting the same error everyday in or the other hive actions. I have attached the logs of the job which failed. Please help me resolve it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running it on CDH 5.9.1 . Have set following global parameters in workflow.xml as well :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hive_server2_session_check_interval=3600000&lt;BR /&gt;hive_server2_idle_operation_timeout=86400000&lt;BR /&gt;hive_server2_idle_session_timeout=259200000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 11:22:43 GMT</pubDate>
    <dc:creator>manishbajaj89</dc:creator>
    <dc:date>2022-09-16T11:22:43Z</dc:date>
    <item>
      <title>HiveServer2 may be unavailable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/52982#M58628</link>
      <description>&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.9.1-1.cdh5.9.1.p0.4/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/data/11/yarn/nm/filecache/4718/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Connecting to xxx/
Connected to: Apache Hive (version 1.1.0-cdh5.9.1)
Driver: Hive JDBC (version 1.1.0-cdh5.9.1)
Transaction isolation: TRANSACTION_REPEATABLE_READ
No rows affected (0.479 seconds)
No rows affected (0.003 seconds)
No rows affected (0.003 seconds)
No rows affected (0.003 seconds)
No rows affected (0.003 seconds)
No rows affected (0.002 seconds)
No rows affected (0.003 seconds)
HS2 may be unavailable, check server status
Error: org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe (state=08S01,code=0)
Closing: 0: xxx/
HS2 may be unavailable, check server status
Error: Error while cleaning up the server resources (state=,code=0)
Intercepting System.exit(2)
Failing Oozie Launcher, Main class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2]&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have series of hive actions in a oozie workflow and I am getting the same error everyday in or the other hive actions. I have attached the logs of the job which failed. Please help me resolve it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running it on CDH 5.9.1 . Have set following global parameters in workflow.xml as well :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hive_server2_session_check_interval=3600000&lt;BR /&gt;hive_server2_idle_operation_timeout=86400000&lt;BR /&gt;hive_server2_idle_session_timeout=259200000&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:22:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/52982#M58628</guid>
      <dc:creator>manishbajaj89</dc:creator>
      <dc:date>2022-09-16T11:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer2 may be unavailable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/53003#M58629</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message suggested that HS2 was not running, have you confirmed by connecting from beeline to make sure that you can run queries through the HS2?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 12:14:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/53003#M58629</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2017-04-18T12:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer2 may be unavailable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/53005#M58630</link>
      <description>Hi Eric&lt;BR /&gt;&lt;BR /&gt;Yes I am able to connect to HS2. Moreover, most of my queries are dealing with huge data so the execution time is also high. Most of the days it fails in on or the other hive actions.&lt;BR /&gt;&lt;BR /&gt;Also, other jobs including hive action are working fine.</description>
      <pubDate>Fri, 31 Mar 2017 10:03:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/53005#M58630</guid>
      <dc:creator>manishbajaj89</dc:creator>
      <dc:date>2017-03-31T10:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: HiveServer2 may be unavailable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/53007#M58631</link>
      <description>In that case, my suggestion is to check for HS2 logs to try to find any queries that takes time to compile. Because HS2 currently can only compile one query at a time, if you have a query that takes a while to compile, it will lock out HS2 and other requests will have to wait.&lt;BR /&gt;&lt;BR /&gt;I am not sure if it is the cause, but worth to check the HS2 log. Look for the following example:&lt;BR /&gt;&lt;BR /&gt;Completed compiling command(queryId=hive_20170227192424_ee0c5216-bef5-456a-934e-212aabe55b75); Time taken: 0.191 seconds&lt;BR /&gt;&lt;BR /&gt;and check if any Time taken values are too big around the time when issue happens.</description>
      <pubDate>Fri, 31 Mar 2017 10:11:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HiveServer2-may-be-unavailable/m-p/53007#M58631</guid>
      <dc:creator>EricL</dc:creator>
      <dc:date>2017-03-31T10:11:25Z</dc:date>
    </item>
  </channel>
</rss>

