<?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 Query to find Grant time/data/ on object from Hive SQL in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221612#M66774</link>
    <description>&lt;P&gt;I can able verify the owner, granter and which role,user is assinged.&lt;/P&gt;&lt;P&gt;Is it possible to list time/data of grant given ?&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; show grant on table database.table_name;
OK
database    table_name                      user USER    DELETE  true    1447912318000   user
database    table_name                      user USER    INSERT  true    1447912318000   user
database    table_name                      user USER    SELECT  true    1447912318000   user
database    table_name                      user USER    UPDATE  true    1447912318000   user
database    table_name                      user ROLE    DELETE  true    1447913961000   root
database    table_name                      user ROLE    INSERT  true    1447913961000   root
database    table_name                      user ROLE    SELECT  true    1447913961000   root
database    table_name                      user ROLE    UPDATE  true    1447913961000   root

&lt;/PRE&gt;</description>
    <pubDate>Thu, 17 Aug 2017 15:19:31 GMT</pubDate>
    <dc:creator>shivkumar82015</dc:creator>
    <dc:date>2017-08-17T15:19:31Z</dc:date>
    <item>
      <title>Query to find Grant time/data/ on object from Hive SQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221612#M66774</link>
      <description>&lt;P&gt;I can able verify the owner, granter and which role,user is assinged.&lt;/P&gt;&lt;P&gt;Is it possible to list time/data of grant given ?&lt;/P&gt;&lt;PRE&gt;hive&amp;gt; show grant on table database.table_name;
OK
database    table_name                      user USER    DELETE  true    1447912318000   user
database    table_name                      user USER    INSERT  true    1447912318000   user
database    table_name                      user USER    SELECT  true    1447912318000   user
database    table_name                      user USER    UPDATE  true    1447912318000   user
database    table_name                      user ROLE    DELETE  true    1447913961000   root
database    table_name                      user ROLE    INSERT  true    1447913961000   root
database    table_name                      user ROLE    SELECT  true    1447913961000   root
database    table_name                      user ROLE    UPDATE  true    1447913961000   root

&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Aug 2017 15:19:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221612#M66774</guid>
      <dc:creator>shivkumar82015</dc:creator>
      <dc:date>2017-08-17T15:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query to find Grant time/data/ on object from Hive SQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221613#M66775</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/11907/shivkumar82015.html" nodeid="11907"&gt;@zkfs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the int field you see is the grantttime (in unix timestamp) when the grant was assigned.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 22:06:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221613#M66775</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-08-17T22:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Query to find Grant time/data/ on object from Hive SQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221614#M66776</link>
      <description>&lt;P&gt;I would like to see time of grant given on table or role ?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 09:48:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221614#M66776</guid>
      <dc:creator>shivkumar82015</dc:creator>
      <dc:date>2017-08-18T09:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query to find Grant time/data/ on object from Hive SQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221615#M66777</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/11907/shivkumar82015.html" nodeid="11907"&gt;@zkfs&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I haven't seen a query to do that yet in Hive.  Instead, you can query the hive metastore for the information, though be mindful that queries run directly against the metastore could impact your hive performance and are not recommended for production systems.  Look at the TBL_PRIVS and TBLS within the hive DB in the metastore, joining these on the TBL_ID may give you the table view you are looking for.  You can probably construct a similar metastore query to look at it from a PRINCIPAL_TYPE (role) as well.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Aug 2017 22:25:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Query-to-find-Grant-time-data-on-object-from-Hive-SQL/m-p/221615#M66777</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-08-21T22:25:23Z</dc:date>
    </item>
  </channel>
</rss>

