<?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: after installing sentry I get privilige errors in hive /Impala in hue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/after-installing-sentry-I-get-privilige-errors-in-hive/m-p/63875#M73690</link>
    <description>&lt;P&gt;Here some extra info on my efforts so far:&lt;/P&gt;&lt;P&gt;1)I log in with the hdfs usr in hue. The hadoop group (/etc/group) consists of users hdfs/mapred/yarn. There is also a group hdfs.&lt;BR /&gt;2) I have created a sentry-provider.ini file as decribed in &lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_sg_sentry.html#concept_iw1_5dp_wk" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_sg_sentry.html#concept_iw1_5dp_wk&lt;/A&gt;&lt;BR /&gt;As my goal is to just give access rights to everything for the hdfs user, the file looks like this:&lt;BR /&gt;[groups]&lt;BR /&gt;# Assigns each Hadoop group to its set of roles&lt;BR /&gt;hadoop = admin_role&lt;BR /&gt;hdfs = admin_role&lt;BR /&gt;[roles]&lt;BR /&gt;# Implies everything on server1.&lt;BR /&gt;admin_role = server=server1&lt;BR /&gt;3) I put the file in the directory that corresponds to the parameter Sentry Global Policy File in the hive configuration (/user/hive/sentry/sentry-provider.ini on hdfs) and restarted the cluster.&lt;BR /&gt;4) In the hive configuration, the sentry parameters are as follows: Sentry Service = none / Enable Sentry Authorization using Policy Files: checked.&amp;nbsp; Is this correct? These 2 configurations seem mutually exclusive: I can not enable them both. It seems I need to provide the .ini file to define my roles so this seems the more important parameter that I enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;5) I restarted the whole cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHen I try again accessing a table in hue through hive or impala, I get errors related to priviliges. Does anyone know what I am missing??&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further I notice one should set grants through Hive QL as described here :&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-5-x/topics/sg_hive_sql.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-5-x/topics/sg_hive_sql.html&lt;/A&gt; . Currently I have no roles. Is this maybe the reason why I only see the default db and not all databases when I execute 'SHOW DATABASES' ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Jan 2018 09:33:58 GMT</pubDate>
    <dc:creator>JB0000000000001</dc:creator>
    <dc:date>2018-01-22T09:33:58Z</dc:date>
    <item>
      <title>after installing sentry I get privilige errors in hive /Impala in hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/after-installing-sentry-I-get-privilige-errors-in-hive/m-p/63838#M73689</link>
      <description>&lt;P&gt;Dear community,&lt;BR /&gt;Since I have installed sentry (without kerberos so in test mode), in Hive I notice that I get errors to do a select on a table that I used to be able to access before: 'No valid privileges User hdfs does not have privileges for SWITCHDATABASE The required privileges: Server=server1-&amp;gt;Db=job-&amp;gt;Table=*-&amp;gt;Column=*-&amp;gt;action=select;Server=server1-&amp;gt;Db=job-&amp;gt;Table=*-&amp;gt;Column=*-&amp;gt;action=insert;'.&lt;BR /&gt;ALso in Impala I notice that I get error messages related to priviliges.&amp;nbsp; The user I use,hdfs, has admin priviliges in hue and is a superuser.&amp;nbsp; After reading up on it, I am a little confused on how it works with users, groups, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:45:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/after-installing-sentry-I-get-privilige-errors-in-hive/m-p/63838#M73689</guid>
      <dc:creator>JB0000000000001</dc:creator>
      <dc:date>2022-09-16T12:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: after installing sentry I get privilige errors in hive /Impala in hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/after-installing-sentry-I-get-privilige-errors-in-hive/m-p/63875#M73690</link>
      <description>&lt;P&gt;Here some extra info on my efforts so far:&lt;/P&gt;&lt;P&gt;1)I log in with the hdfs usr in hue. The hadoop group (/etc/group) consists of users hdfs/mapred/yarn. There is also a group hdfs.&lt;BR /&gt;2) I have created a sentry-provider.ini file as decribed in &lt;A href="https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_sg_sentry.html#concept_iw1_5dp_wk" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_sg_sentry.html#concept_iw1_5dp_wk&lt;/A&gt;&lt;BR /&gt;As my goal is to just give access rights to everything for the hdfs user, the file looks like this:&lt;BR /&gt;[groups]&lt;BR /&gt;# Assigns each Hadoop group to its set of roles&lt;BR /&gt;hadoop = admin_role&lt;BR /&gt;hdfs = admin_role&lt;BR /&gt;[roles]&lt;BR /&gt;# Implies everything on server1.&lt;BR /&gt;admin_role = server=server1&lt;BR /&gt;3) I put the file in the directory that corresponds to the parameter Sentry Global Policy File in the hive configuration (/user/hive/sentry/sentry-provider.ini on hdfs) and restarted the cluster.&lt;BR /&gt;4) In the hive configuration, the sentry parameters are as follows: Sentry Service = none / Enable Sentry Authorization using Policy Files: checked.&amp;nbsp; Is this correct? These 2 configurations seem mutually exclusive: I can not enable them both. It seems I need to provide the .ini file to define my roles so this seems the more important parameter that I enabled.&lt;/P&gt;&lt;P&gt;&amp;nbsp;5) I restarted the whole cluster.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHen I try again accessing a table in hue through hive or impala, I get errors related to priviliges. Does anyone know what I am missing??&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Further I notice one should set grants through Hive QL as described here :&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-5-x/topics/sg_hive_sql.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-5-x/topics/sg_hive_sql.html&lt;/A&gt; . Currently I have no roles. Is this maybe the reason why I only see the default db and not all databases when I execute 'SHOW DATABASES' ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2018 09:33:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/after-installing-sentry-I-get-privilige-errors-in-hive/m-p/63875#M73690</guid>
      <dc:creator>JB0000000000001</dc:creator>
      <dc:date>2018-01-22T09:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: after installing sentry I get privilige errors in hive /Impala in hue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/after-installing-sentry-I-get-privilige-errors-in-hive/m-p/63998#M73691</link>
      <description>&lt;P&gt;Note: I was able to solve this issue. The reason is that I was using hue and not beeline. Through beeline I was able to add the roles described here :&lt;A href="https://www.cloudera.com/documentation/enterprise/5-13-x/topics/sg_hive_sql.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-13-x/topics/sg_hive_sql.html&lt;/A&gt; and after that I was able to access my table through beeline. THis link&amp;nbsp; also states that beeline should be used.&lt;/P&gt;&lt;P&gt;It is not clear to me yet why I could not grant the roles through hue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully this is useful for someone else in the future!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2018 09:29:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/after-installing-sentry-I-get-privilige-errors-in-hive/m-p/63998#M73691</guid>
      <dc:creator>JB0000000000001</dc:creator>
      <dc:date>2018-01-25T09:29:45Z</dc:date>
    </item>
  </channel>
</rss>

