<?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: hiveserver2 error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317447#M227168</link>
    <description>&lt;P&gt;yeah we currently have 2 HS2 instances.&lt;/P&gt;&lt;P&gt;For some reason our production seems to be working fine with Squirrel.&lt;/P&gt;&lt;P&gt;Our dev seems to be timing out after running simple queries such as "show databases".&lt;/P&gt;&lt;P&gt;Beeline seems to work fine on our dev cluster.&lt;/P&gt;&lt;P&gt;The only difference I can think of is that our dev cluster has an external mysql server whereas the production cluster, mysql server is installed on one of the nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing some squirrel drivers or something? Wondering why it is just squirrel that seems to have issues running queries against our dev hiveserver2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Tue, 01 Jun 2021 04:05:50 GMT</pubDate>
    <dc:creator>ryu</dc:creator>
    <dc:date>2021-06-01T04:05:50Z</dc:date>
    <item>
      <title>hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317261#M227082</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;Many of the devs are getting the following error when trying to connect with squirrel:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Error: org.apache.thrift.transport.TTransportException: java.net.SocketTimeoutException: Read timed out&lt;/P&gt;&lt;P&gt;SQLState:&amp;nbsp; 08S01&lt;/P&gt;&lt;P&gt;ErrorCode: 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe the issue may be because there are too many concurrent hive connections.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help suggest how should i configure this to allow more hive connections?&lt;/P&gt;&lt;P&gt;Also I find it weird that I can connect through beeline using the edge node of that cluster but Squirrel is giving an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 21:04:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317261#M227082</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2021-05-27T21:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317272#M227083</link>
      <description>&lt;P&gt;all connections from&amp;nbsp;&lt;SPAN&gt;squirrel got the issues?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 03:10:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317272#M227083</guid>
      <dc:creator>heya</dc:creator>
      <dc:date>2021-05-28T03:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317292#M227096</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84981"&gt;@ryu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;Please have a look at this document it could help you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://serverliving.wordpress.com/2016/05/05/step-by-step-connect-squirrelsql-hiveserver2/" target="_blank" rel="noopener"&gt;https://serverliving.wordpress.com/2016/05/05/step-by-step-connect-squirrelsql-hiveserver2/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 08:51:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317292#M227096</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2021-05-28T08:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317295#M227098</link>
      <description>&lt;P&gt;Could you please monitor the number of connections at the time you are getting this exception ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the number of connections, you should tune HMS and HS2 =&amp;gt;&amp;nbsp;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cdh_ig_hive_metastore_configure.html#concept_jsw_bnc_rp" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cdh_ig_hive_metastore_configure.html#concept_jsw_bnc_rp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how many HS2 instances are installed on your cluster as&amp;nbsp;&lt;SPAN&gt;Cloudera recommends splitting HiveServer2 into multiple instances and load balancing them once you start allocating more than 16 GB to HiveServer2. The objective is to adjust the size to reduce the impact of Java garbage collection on active processing by the service.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 09:23:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317295#M227098</guid>
      <dc:creator>LeetKrew93</dc:creator>
      <dc:date>2021-05-28T09:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317315#M227113</link>
      <description>&lt;P&gt;Squirrel connecting to production cluster is a bit better but i noticed there are fewer&amp;nbsp; existing connections.&lt;BR /&gt;I will do more research on what the others suggested in the comments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the response.&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 20:36:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317315#M227113</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2021-05-28T20:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317316#M227114</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/79958"&gt;@LeetKrew93&lt;/a&gt;&amp;nbsp; We currently have 2 instances of HMS and HS2.&lt;/P&gt;&lt;P&gt;I believe if the jdbc string includes all the zookeepers, doesn't the zookeeper help load balance for hive?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Also I believe for our dev cluster, there are lots of connections. Is there a way to increase the max number of connections or should i create an extra hive instance?&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 21:05:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317316#M227114</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2021-05-28T21:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317318#M227116</link>
      <description>&lt;P&gt;So i just counted our connections and it seems like we have around 40 connections going on at the same time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So when should or how do we know how many hive instances we should have?&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 21:55:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317318#M227116</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2021-05-28T21:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317320#M227118</link>
      <description>&lt;P&gt;Even after I increased the hiveserver2 heap memory and restarted hive, I don't see any connections but still Squirrel is having issues connecting to the dev cluster.&lt;BR /&gt;But our Prod cluster seems to work fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 May 2021 23:25:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317320#M227118</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2021-05-28T23:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317322#M227119</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84981"&gt;@ryu&lt;/a&gt;&amp;nbsp;, as a general rule of thumb&amp;nbsp;&lt;SPAN&gt;Cloudera recommends that you determine the total number of HS2 servers on a cluster by dividing the expected maximum number of concurrent users on a cluster by 40. For example, if 400 concurrent users are expected, 10 HS2 instances should be available to support them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, here are some HS2 tuning best practices that you can visit =&amp;gt;&amp;nbsp;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/admin_hive_tuning.html#hs2_perf_best_practices" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/admin_hive_tuning.html#hs2_perf_best_practices&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Aditya&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 00:28:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317322#M227119</guid>
      <dc:creator>LeetKrew93</dc:creator>
      <dc:date>2021-05-29T00:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317324#M227120</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84981"&gt;@ryu&lt;/a&gt;&amp;nbsp;, could you please upload HS2 and HMS logs at the time you are hitting below exception while trying to make a connection to hive using Squirrel :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;++++++&lt;/P&gt;&lt;P&gt;Error: org.apache.thrift.transport.TTransportException: java.net.SocketTimeoutException: Read timed out&lt;/P&gt;&lt;P&gt;SQLState:&amp;nbsp; 08S01&lt;/P&gt;&lt;P&gt;ErrorCode: 0&lt;/P&gt;&lt;P&gt;++++++&lt;/P&gt;&lt;P&gt;Did you find anything suspicious from the Squirrel's log end ?&lt;/P&gt;&lt;P&gt;Also, let us know if it is intermittent or not ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 00:43:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317324#M227120</guid>
      <dc:creator>LeetKrew93</dc:creator>
      <dc:date>2021-05-29T00:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317325#M227121</link>
      <description>&lt;P&gt;Most of the time I get this time out, even after restarting hive.&lt;/P&gt;&lt;P&gt;This happens on our dev cluster. I am able to use beeline to connect to our hive in our dev cluster.&lt;/P&gt;&lt;P&gt;Our production cluster does not seem to have this issue.&lt;/P&gt;&lt;P&gt;from the squirrel logs I see this...&lt;BR /&gt;&lt;BR /&gt;2021-05-28 20:38:10,136 [Thread-1] WARN net.sourceforge.squirrel_sql.fw.sql.SQLDatabaseMetaData - DatabaseMetaData.getTables(...) threw an error when called with tableNamePattern = null. Trying tableNamePattern %. The error was: java.sql.SQLException: java.net.SocketTimeoutException: Read timed out&lt;BR /&gt;2021-05-28 20:38:40,145 [Thread-1] ERROR net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo - failed to load table names&lt;BR /&gt;java.sql.SQLException: java.net.SocketTimeoutException: Read timed out&lt;BR /&gt;at org.apache.hive.jdbc.HiveDatabaseMetaData.getTables(HiveDatabaseMetaData.java:656)&lt;BR /&gt;at net.sourceforge.squirrel_sql.fw.sql.SQLDatabaseMetaData.getTables(SQLDatabaseMetaData.java:1008)&lt;BR /&gt;at net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo.privateLoadTables(SchemaInfo.java:1212)&lt;BR /&gt;at net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo.loadTables(SchemaInfo.java:412)&lt;BR /&gt;at net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo.privateLoadAll(SchemaInfo.java:303)&lt;BR /&gt;at net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo.initialLoad(SchemaInfo.java:179)&lt;BR /&gt;at net.sourceforge.squirrel_sql.client.session.Session$1.run(Session.java:261)&lt;BR /&gt;at net.sourceforge.squirrel_sql.fw.util.TaskExecuter.run(TaskExecuter.java:82)&lt;BR /&gt;at java.base/java.lang.Thread.run(Thread.java:834)&lt;BR /&gt;Caused by: org.apache.thrift.transport.TTransportException: java.net.SocketTimeoutException: Read timed out&lt;BR /&gt;at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)&lt;BR /&gt;at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)&lt;BR /&gt;at org.apache.thrift.transport.TSaslTransport.readLength(TSaslTransport.java:376)&lt;BR /&gt;at org.apache.thrift.transport.TSaslTransport.readFrame(TSaslTransport.java:453)&lt;BR /&gt;at org.apache.thrift.transport.TSaslTransport.read(TSaslTransport.java:435)&lt;BR /&gt;at org.apache.thrift.transport.TSaslClientTransport.read(TSaslClientTransport.java:37)&lt;BR /&gt;at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)&lt;BR /&gt;at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429)&lt;BR /&gt;at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318)&lt;BR /&gt;at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219)&lt;BR /&gt;at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:77)&lt;BR /&gt;at org.apache.hive.service.cli.thrift.TCLIService$Client.recv_GetTables(TCLIService.java:321)&lt;BR /&gt;at org.apache.hive.service.cli.thrift.TCLIService$Client.GetTables(TCLIService.java:308)&lt;BR /&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt;at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.base/java.lang.reflect.Method.invoke(Method.java:566)&lt;BR /&gt;at org.apache.hive.jdbc.HiveConnection$SynchronizedHandler.invoke(HiveConnection.java:1363)&lt;BR /&gt;at com.sun.proxy.$Proxy5.GetTables(Unknown Source)&lt;BR /&gt;at org.apache.hive.jdbc.HiveDatabaseMetaData.getTables(HiveDatabaseMetaData.java:654)&lt;BR /&gt;... 8 more&lt;BR /&gt;Caused by: java.net.SocketTimeoutException: Read timed out&lt;BR /&gt;at java.base/java.net.SocketInputStream.socketRead0(Native Method)&lt;BR /&gt;at java.base/java.net.SocketInputStream.socketRead(SocketInputStream.java:115)&lt;BR /&gt;at java.base/java.net.SocketInputStream.read(SocketInputStream.java:168)&lt;BR /&gt;at java.base/java.net.SocketInputStream.read(SocketInputStream.java:140)&lt;BR /&gt;at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:252)&lt;BR /&gt;at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:292)&lt;BR /&gt;at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)&lt;BR /&gt;at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)&lt;BR /&gt;... 27 more&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 01:44:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317325#M227121</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2021-05-29T01:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317447#M227168</link>
      <description>&lt;P&gt;yeah we currently have 2 HS2 instances.&lt;/P&gt;&lt;P&gt;For some reason our production seems to be working fine with Squirrel.&lt;/P&gt;&lt;P&gt;Our dev seems to be timing out after running simple queries such as "show databases".&lt;/P&gt;&lt;P&gt;Beeline seems to work fine on our dev cluster.&lt;/P&gt;&lt;P&gt;The only difference I can think of is that our dev cluster has an external mysql server whereas the production cluster, mysql server is installed on one of the nodes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I missing some squirrel drivers or something? Wondering why it is just squirrel that seems to have issues running queries against our dev hiveserver2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is much appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 04:05:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317447#M227168</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2021-06-01T04:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: hiveserver2 error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317679#M227275</link>
      <description>&lt;P&gt;Also Squirrel seems to be connecting to the dev cluster.&lt;/P&gt;&lt;P&gt;It just times out when running a query such as "show databases".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If squirrel stays connected for a long time, I noticed that the query will eventually return results instead of timing out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Per cloudera "&lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_hive_metastore_configure.html#concept_jsw_bnc_rp&amp;quot;" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/latest/topics/cdh_ig_hive_metastore_configure.html#concept_jsw_bnc_rp"&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It says that minimum 4 dedicated cores to HS2 and 4 for hive metastore.&lt;/P&gt;&lt;P&gt;The server that hosts hs2 and metastore only has a total of 8 cores.&lt;/P&gt;&lt;P&gt;Can this be a reason for the performance issue?&lt;/P&gt;&lt;P&gt;Any help on this is much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jun 2021 22:54:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hiveserver2-error/m-p/317679#M227275</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2021-06-03T22:54:35Z</dc:date>
    </item>
  </channel>
</rss>

