<?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: error executing queries in hive cli and spark-shell in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/error-executing-queries-in-hive-cli-and-spark-shell/m-p/353019#M236631</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96163"&gt;@yagoaparecidoti&lt;/a&gt;&amp;nbsp;It looks like this particular user does not have permission to connect to HMS. You can add this user or put "*" under this configuration : &lt;STRONG&gt;CM-&amp;gt;Hive-&amp;gt;Configuration-&amp;gt;Search "hive_proxy_user_groups_list"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And then restart hive and then run "show databases" .&lt;/P&gt;&lt;P&gt;Another possibility could be that it is not able to locate hive-site.xml on the node required to connect to Hive Metastore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 11:16:03 GMT</pubDate>
    <dc:creator>rtrivedi</dc:creator>
    <dc:date>2022-09-22T11:16:03Z</dc:date>
    <item>
      <title>error executing queries in hive cli and spark-shell</title>
      <link>https://community.cloudera.com/t5/Support-Questions/error-executing-queries-in-hive-cli-and-spark-shell/m-p/352926#M236615</link>
      <description>&lt;P&gt;hello cloudera community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are having a problem accessing the hive cli of a certain user and the spark-shell too&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when executing the query "show databases" in hive cli returns the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset "&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when executing the "show databases" query in spark-shell returns the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"org.apache.spark.sql.AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.hadoop.hive.ql.metadata.HiveException: org.apache.thrift.transport.TTransportException;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"WARN metastore.RetryingMetaStoreClient: MetaStoreClient lost connection. Attempting to reconnect.&lt;BR /&gt;org.apache.thrift.transport.TTransportException"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when we use beeline and run the query "show databases" it works without problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;could you help us with this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we are using cloudera manager 5.16.1 and cdh 5.16.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the cluster is with kerberos and sentry is managing the permissions to the cluster databases&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 20:00:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/error-executing-queries-in-hive-cli-and-spark-shell/m-p/352926#M236615</guid>
      <dc:creator>yagoaparecidoti</dc:creator>
      <dc:date>2022-09-21T20:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: error executing queries in hive cli and spark-shell</title>
      <link>https://community.cloudera.com/t5/Support-Questions/error-executing-queries-in-hive-cli-and-spark-shell/m-p/353019#M236631</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/96163"&gt;@yagoaparecidoti&lt;/a&gt;&amp;nbsp;It looks like this particular user does not have permission to connect to HMS. You can add this user or put "*" under this configuration : &lt;STRONG&gt;CM-&amp;gt;Hive-&amp;gt;Configuration-&amp;gt;Search "hive_proxy_user_groups_list"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;And then restart hive and then run "show databases" .&lt;/P&gt;&lt;P&gt;Another possibility could be that it is not able to locate hive-site.xml on the node required to connect to Hive Metastore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 11:16:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/error-executing-queries-in-hive-cli-and-spark-shell/m-p/353019#M236631</guid>
      <dc:creator>rtrivedi</dc:creator>
      <dc:date>2022-09-22T11:16:03Z</dc:date>
    </item>
  </channel>
</rss>

