<?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 I installed Sentry on Cluster, now where to start? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371046#M240880</link>
    <description>&lt;P data-unlink="true"&gt;I followed this &lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/sg_sentry_service_install.html" target="_self"&gt;guide&lt;/A&gt; on the Cloudera website, I've finished "Installing and Upgrading the Sentry Service"&amp;nbsp;step. Now what do I do next?&lt;/P&gt;&lt;P data-unlink="true"&gt;I tried to start Beeline and execute some queries as normal but get a privilege error&lt;/P&gt;&lt;P data-unlink="true"&gt;kinit -k -t /home/vgdata/vega.keytab vega@BI.VEGA.COM&amp;nbsp;&amp;nbsp;(get tgt for user vega)&lt;/P&gt;&lt;P&gt;beeline -u "jdbc:hive2://data-node01:10000/test;principal=hive/data-node01.vega.com@BI.VEGA.COM" (access beeline with kerberos principal)&lt;/P&gt;&lt;P&gt;select * from test; (execute query)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I got an error like below&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error: Error while compiling statement: FAILED: SemanticException No valid privileges&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;User &lt;STRONG&gt;vega&lt;/STRONG&gt; does not have privileges for SWITCHDATABASE&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;The required privileges: Server=server1-&amp;gt;Db=*-&amp;gt;Table=+-&amp;gt;Column=*...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;User "vega" is hdfs superuser, and also the main user that we use to connect to all Hadoop services (there is a Kerberos principal "vega" too)&lt;/P&gt;&lt;P&gt;I tried to execute some commands like&lt;/P&gt;&lt;P&gt;create role admin;&lt;/P&gt;&lt;P&gt;grant role ....&lt;/P&gt;&lt;P&gt;But all get an error like "&lt;EM&gt;No groups found for user vega&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now where do I start? Is there a default "admin" user that I can do everything (including grant...)? I want to grant user "vega" the "admin" role, which can do everything. Something like my SQL grant privilege command&lt;/P&gt;&lt;P&gt;GRANT ALL PRIVILEGES ON database.table TO user;&lt;/P&gt;&lt;P&gt;GRANT ALL PRIVILEGES ON *.* TO vega;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 04:12:39 GMT</pubDate>
    <dc:creator>quangbilly79</dc:creator>
    <dc:date>2023-05-18T04:12:39Z</dc:date>
    <item>
      <title>I installed Sentry on Cluster, now where to start?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371046#M240880</link>
      <description>&lt;P data-unlink="true"&gt;I followed this &lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/sg_sentry_service_install.html" target="_self"&gt;guide&lt;/A&gt; on the Cloudera website, I've finished "Installing and Upgrading the Sentry Service"&amp;nbsp;step. Now what do I do next?&lt;/P&gt;&lt;P data-unlink="true"&gt;I tried to start Beeline and execute some queries as normal but get a privilege error&lt;/P&gt;&lt;P data-unlink="true"&gt;kinit -k -t /home/vgdata/vega.keytab vega@BI.VEGA.COM&amp;nbsp;&amp;nbsp;(get tgt for user vega)&lt;/P&gt;&lt;P&gt;beeline -u "jdbc:hive2://data-node01:10000/test;principal=hive/data-node01.vega.com@BI.VEGA.COM" (access beeline with kerberos principal)&lt;/P&gt;&lt;P&gt;select * from test; (execute query)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I got an error like below&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Error: Error while compiling statement: FAILED: SemanticException No valid privileges&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;User &lt;STRONG&gt;vega&lt;/STRONG&gt; does not have privileges for SWITCHDATABASE&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;The required privileges: Server=server1-&amp;gt;Db=*-&amp;gt;Table=+-&amp;gt;Column=*...&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;User "vega" is hdfs superuser, and also the main user that we use to connect to all Hadoop services (there is a Kerberos principal "vega" too)&lt;/P&gt;&lt;P&gt;I tried to execute some commands like&lt;/P&gt;&lt;P&gt;create role admin;&lt;/P&gt;&lt;P&gt;grant role ....&lt;/P&gt;&lt;P&gt;But all get an error like "&lt;EM&gt;No groups found for user vega&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now where do I start? Is there a default "admin" user that I can do everything (including grant...)? I want to grant user "vega" the "admin" role, which can do everything. Something like my SQL grant privilege command&lt;/P&gt;&lt;P&gt;GRANT ALL PRIVILEGES ON database.table TO user;&lt;/P&gt;&lt;P&gt;GRANT ALL PRIVILEGES ON *.* TO vega;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 04:12:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371046#M240880</guid>
      <dc:creator>quangbilly79</dc:creator>
      <dc:date>2023-05-18T04:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: I installed Sentry on Cluster, now where to start?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371066#M240887</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use the below commands and see if you find any difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;CREATE ROLE [role_name];&lt;/P&gt;&lt;P class="p1"&gt;GRANT &amp;lt;PRIVILEGE&amp;gt; ON &amp;lt;OBJECT&amp;gt; &amp;lt;object_name&amp;gt; TO ROLE &amp;lt;roleName&amp;gt;&lt;/P&gt;&lt;P class="p1"&gt;GRANT ROLE &amp;lt;role_name&amp;gt; TO GROUP &amp;lt;groupName&amp;gt;;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Examples:&lt;/P&gt;&lt;P class="p1"&gt;create role testing;&lt;/P&gt;&lt;P class="p1"&gt;grant all on database &amp;lt;db-name&amp;gt; to role testing;&lt;/P&gt;&lt;P class="p1"&gt;grant role testing to group &amp;lt;group-name&amp;gt;;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;In this case the user should be part of this particular group on all the cluster nodes - user group mapping at OS level is required. You can check the groups of a user using "id &amp;lt;user-name&amp;gt;".&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;Regards,&lt;/P&gt;&lt;P class="p1"&gt;Chethan YM&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 09:05:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371066#M240887</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2023-05-18T09:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: I installed Sentry on Cluster, now where to start?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371147#M240902</link>
      <description>&lt;P&gt;Thank. The user hasn't existed at OS Level (Centos). I create the user and it's fine. Also, the created user must be in "admin.groups" in Sentry conf to have the privileges on the Grant Commands.&lt;/P&gt;&lt;P&gt;Also, may I ask how Sentry recognize user/group? Does it take the user/group from Hue, or HDFS, or local OS (in the case of using Cloudera Cluster)? At first, I think it was the OS level, but I have some problems related to the user/group, seems like Sentry doesn't recognize properly user/group setting on the OS level.&lt;/P&gt;&lt;P&gt;Or do I have to create the same user/group for all nodes in cluster, not just in the main name-node?&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 02:56:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371147#M240902</guid>
      <dc:creator>quangbilly79</dc:creator>
      <dc:date>2023-05-19T02:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: I installed Sentry on Cluster, now where to start?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371170#M240913</link>
      <description>&lt;P&gt;Yes, User group mapping should be across the cluster nodes not only on name-node.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 09:21:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/I-installed-Sentry-on-Cluster-now-where-to-start/m-p/371170#M240913</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2023-05-19T09:21:07Z</dc:date>
    </item>
  </channel>
</rss>

