<?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 Strange error on Hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Strange-error-on-Hive/m-p/297692#M218812</link>
    <description>&lt;P&gt;Hello guys!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to run the following commands in Hive:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;use dataengsandbox;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;hive.mapred.supports.subdirectories=true;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;insert overwrite directory '/tmp/hmb/test'&lt;/FONT&gt; select max(id) from nodename;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I remove the text marked in orange it works without issues, &lt;STRONG&gt;but I want my output to be written into a HDFS directory.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here is the error that I've received:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;Error while compiling statement: FAILED: SemanticException No valid privileges User lrm0613 does not have privileges for QUERY The required privileges: Server=server1-&amp;gt;URI=hdfs://nameservice1/tmp/hmb/test-&amp;gt;action=*;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2020 21:18:30 GMT</pubDate>
    <dc:creator>Heri</dc:creator>
    <dc:date>2020-06-09T21:18:30Z</dc:date>
    <item>
      <title>Strange error on Hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Strange-error-on-Hive/m-p/297692#M218812</link>
      <description>&lt;P&gt;Hello guys!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to run the following commands in Hive:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;use dataengsandbox;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;hive.mapred.supports.subdirectories=true;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF6600"&gt;insert overwrite directory '/tmp/hmb/test'&lt;/FONT&gt; select max(id) from nodename;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I remove the text marked in orange it works without issues, &lt;STRONG&gt;but I want my output to be written into a HDFS directory.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Here is the error that I've received:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;Error while compiling statement: FAILED: SemanticException No valid privileges User lrm0613 does not have privileges for QUERY The required privileges: Server=server1-&amp;gt;URI=hdfs://nameservice1/tmp/hmb/test-&amp;gt;action=*;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 21:18:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Strange-error-on-Hive/m-p/297692#M218812</guid>
      <dc:creator>Heri</dc:creator>
      <dc:date>2020-06-09T21:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Strange error on Hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Strange-error-on-Hive/m-p/298117#M219003</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/76398"&gt;@Heri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There seems to be missing sentry privileges on the hdfs URI&lt;/P&gt;&lt;P&gt;Please refer below document to add the privileges.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/documentation/enterprise/latest/topics/sg_hive_sql.html#grant_privilege_on_uri" target="_blank"&gt;https://docs.cloudera.com/documentation/enterprise/latest/topics/sg_hive_sql.html#grant_privilege_on_uri&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Paras&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;I&gt;Was your question answered? Make sure to mark the answer as the accepted solution.&lt;/I&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jun 2020 10:30:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Strange-error-on-Hive/m-p/298117#M219003</guid>
      <dc:creator>paras</dc:creator>
      <dc:date>2020-06-16T10:30:50Z</dc:date>
    </item>
  </channel>
</rss>

