<?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: Sentry No valid privileges Required privileges for this query in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38904#M22515</link>
    <description>&lt;P&gt;Finally I was adviced what was wrong: The Hue groups must be the same as the groups on the Namenode's linux (as the HDFS org.apache.hadoop.security.ShellBasedUnixGroupsMapping is checked). In the case of Impala, all of nodes with Impala Daemons have to have same groups. However, I am going to overtake the groups from LDAP (option org.apache.hadoop.security.LdapGroupsMapping).&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2016 09:06:52 GMT</pubDate>
    <dc:creator>Petr</dc:creator>
    <dc:date>2016-03-22T09:06:52Z</dc:date>
    <item>
      <title>Sentry No valid privileges Required privileges for this query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38564#M22513</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have unsecured cluster (CDH 5.4) and as I want to provide an access to data to more users, I would like to turn on the Sentry, so far without Kerberos (which comes after sucessful launch of Sentry).&lt;BR /&gt;As some other people might need Impala at the moment, I decided to set it up in Hive in first stage.&lt;BR /&gt;&lt;BR /&gt;Steps I have taken:&lt;BR /&gt;1) I have set up 2 users: hive and tuser&lt;BR /&gt;tuser - group test&lt;BR /&gt;hive - group hive, zookeeper&lt;BR /&gt;&lt;BR /&gt;group test&lt;BR /&gt;indexer.access, about.access, beeswax.access, filebrowser.access, hbase.write, hbase.access, help.access, impala.access, jobbrowser.access,&lt;BR /&gt;jobsub.access, metastore.write, metastore.access, oozie.dashboard_jobs_access, oozie.access, pig.access, proxy.access, rdbms.access,&lt;BR /&gt;search.access, security.impersonate, security.access, spark.access, sqoop.access, useradmin.access_view:useradmin:edit_user, useradmin.access, zookeeper.access&lt;BR /&gt;&lt;BR /&gt;group hive&lt;BR /&gt;beeswax.access&lt;BR /&gt;&lt;BR /&gt;group hive has role admin (the first one with an unlocked lock):&lt;BR /&gt;SERVER&lt;BR /&gt;server=server1 action=ALL&lt;BR /&gt;SERVER&lt;BR /&gt;server=server1 action=ALL&lt;BR /&gt;&lt;BR /&gt;group test has role neco&lt;BR /&gt;SERVER&lt;BR /&gt;server=server1 action=ALL&lt;BR /&gt;URI&lt;BR /&gt;server=server1 hdfs://...:8020/user/hive/warehouse action=ALL&lt;BR /&gt;DATABASE&lt;BR /&gt;server=server1 db=default action=ALL&lt;BR /&gt;&lt;BR /&gt;Moreover, the user hive is in both sets sentry.service.admin.group and sentry.service.allow.connect.&lt;BR /&gt;&lt;BR /&gt;2) I have turned on the sentry&lt;BR /&gt;- in Hive checked the Sentry Service from "none" to "Sentry"&lt;BR /&gt;- in Hive Service Advanced Configuration Snippet (Safety Valve) for sentry-site.xml inserted &amp;lt;property&amp;gt; &amp;lt;name&amp;gt;sentry.hive.testing.mode&amp;lt;/name&amp;gt;&amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;&amp;lt;/property&amp;gt;&lt;BR /&gt;+ restarted Sentry&lt;BR /&gt;&lt;BR /&gt;Result:&lt;BR /&gt;User hive can access anything in Hive. That's what I was expecting.&lt;BR /&gt;User tuser can't access anything in Hive (Error while compiling statement: FAILED: SemanticException No valid privileges Required privileges for this query: Server=server1-&amp;gt;Db=*-&amp;gt;Table=+-&amp;gt;action=insert;Server=server1-&amp;gt;Db=*-&amp;gt;Table=+-&amp;gt;action=select;)&lt;BR /&gt;&lt;BR /&gt;What am I missing?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:08:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38564#M22513</guid>
      <dc:creator>Petr</dc:creator>
      <dc:date>2022-09-16T10:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry No valid privileges Required privileges for this query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38568#M22514</link>
      <description>Plus:&lt;BR /&gt;All in /user/hive/warehouse has owner and group hive + 777.&lt;BR /&gt;Moreover, I tried to add tuser into hive group, and added it into groups sentry.service.admin.group and sentry.service.allow.connect, and sentry.metastore.service.users, but the result is the same.</description>
      <pubDate>Fri, 11 Mar 2016 14:20:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38568#M22514</guid>
      <dc:creator>Petr</dc:creator>
      <dc:date>2016-03-11T14:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry No valid privileges Required privileges for this query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38904#M22515</link>
      <description>&lt;P&gt;Finally I was adviced what was wrong: The Hue groups must be the same as the groups on the Namenode's linux (as the HDFS org.apache.hadoop.security.ShellBasedUnixGroupsMapping is checked). In the case of Impala, all of nodes with Impala Daemons have to have same groups. However, I am going to overtake the groups from LDAP (option org.apache.hadoop.security.LdapGroupsMapping).&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 09:06:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38904#M22515</guid>
      <dc:creator>Petr</dc:creator>
      <dc:date>2016-03-22T09:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry No valid privileges Required privileges for this query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38911#M22516</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/15307"&gt;@Petr﻿&lt;/a&gt;&amp;nbsp;Thanks for sharing the solution in case it can be of assistance to others. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 12:36:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/38911#M22516</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2016-03-22T12:36:19Z</dc:date>
    </item>
    <item>
      <title>Unable to create table :</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/44187#M22517</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Im trying to create a table as mentioned below. I have all the read/write/execute permissions for the mentioned users.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE EXTERNAL TABLE stage_rtra_transaction_ext_1(&lt;BR /&gt;attemptid string,&lt;BR /&gt;trns_sur_key string,&lt;BR /&gt;sender_gi string,&lt;BR /&gt;payee_gi string,&lt;BR /&gt;success_flag string,&lt;BR /&gt;atch_que_name string,&lt;BR /&gt;transactionstate string,&lt;BR /&gt;pay_mtcn_nr string,&lt;BR /&gt;swb_zone string,&lt;BR /&gt;swb_zone_pay string,&lt;BR /&gt;que_name string,&lt;BR /&gt;moneyordertype string,&lt;BR /&gt;trns_ts string,&lt;BR /&gt;ext_seq_no string,&lt;BR /&gt;field_name string,&lt;BR /&gt;field_value string)&lt;BR /&gt;PARTITIONED BY (&lt;BR /&gt;year int,&lt;BR /&gt;month int,&lt;BR /&gt;day int)&lt;BR /&gt;ROW FORMAT DELIMITED&lt;BR /&gt;FIELDS TERMINATED BY '\u0001'&lt;BR /&gt;STORED AS RCFILE&lt;BR /&gt;LOCATION 'hdfs://nameservice1/compliance/compliancehadoop/data/stage/rtra/STAGE_RTRA_TRANSACTION_EXT/';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while running in beeline im getting the below error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error: Error while compiling statement: FAILED: SemanticException No valid privileges&lt;BR /&gt;User compliance does not have privileges for CREATETABLE&lt;BR /&gt;The required privileges: Server=server1-&amp;gt;URI=hdfs://nameservice1/compliance/compliancehadoop/data/stage/rtra/STAGE_RTRA_TRANSACTION_EXT-&amp;gt;action=*; (state=42000,code=40000)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On removing the LOCATION line, the query works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please anyone help me to sort out this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mjoy&lt;/P&gt;</description>
      <pubDate>Mon, 22 Aug 2016 09:48:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/44187#M22517</guid>
      <dc:creator>MJoy</dc:creator>
      <dc:date>2016-08-22T09:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to create table :</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/44464#M22518</link>
      <description>&lt;P&gt;Can i have resolution for this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All permissions are perfect but still i could not able to create the External table as a specific user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2016 07:28:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/44464#M22518</guid>
      <dc:creator>MJoy</dc:creator>
      <dc:date>2016-08-29T07:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry No valid privileges Required privileges for this query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/44756#M22519</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure where to go for configuring roles as you have mentioned in your post.&lt;/P&gt;&lt;P&gt;In the Hue UI, I can see the interface for adding groups/permissions.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 16:30:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/44756#M22519</guid>
      <dc:creator>DAggarwal</dc:creator>
      <dc:date>2016-09-06T16:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry No valid privileges Required privileges for this query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/44757#M22520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure where to go for configuring roles. In the Hue UI, I can see interface for adding groups/permissions but not roles. Please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;group hive has role admin (the first one with an unlocked lock):&lt;BR /&gt;SERVER&lt;BR /&gt;server=server1 action=ALL&lt;BR /&gt;SERVER&lt;BR /&gt;server=server1 action=ALL&lt;BR /&gt;&lt;BR /&gt;group test has role neco&lt;BR /&gt;SERVER&lt;BR /&gt;server=server1 action=ALL&lt;BR /&gt;URI&lt;BR /&gt;server=server1 hdfs://...:8020/user/hive/warehouse action=ALL&lt;BR /&gt;DATABASE&lt;BR /&gt;server=server1 db=default action=ALL&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2016 16:32:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/44757#M22520</guid>
      <dc:creator>DAggarwal</dc:creator>
      <dc:date>2016-09-06T16:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sentry No valid privileges Required privileges for this query</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/52971#M22521</link>
      <description>&lt;P&gt;do you mind expanding on the answer a bit&lt;/P&gt;&lt;P&gt;I have the same problem&amp;nbsp;&lt;/P&gt;&lt;P&gt;is the group setting in CM or on hdfs or os files system?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 00:03:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sentry-No-valid-privileges-Required-privileges-for-this/m-p/52971#M22521</guid>
      <dc:creator>scratch28</dc:creator>
      <dc:date>2017-03-31T00:03:45Z</dc:date>
    </item>
  </channel>
</rss>

