<?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: How to determine who ran query if Hive Impersonations = False? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106982#M25646</link>
    <description>&lt;P style="margin-left: 40px;"&gt; Thanks to &lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt; I found it can be done via tez api calls. &lt;/P&gt;&lt;P style="margin-left: 80px;"&gt;some examples thanks to &lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="http://myserver.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330062211_6917b0b2-a34f-4735-b332-57083a18199f" target="_blank"&gt;http://myserver.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330062211_6917b0b2-a34f-4735-b332-57083a18199f&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="http://myserver.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330064546_192ee370-d548-44fc-8073-903eaf6bf02" target="_blank"&gt;http://myserver.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330064546_192ee370-d548-44fc-8073-903eaf6bf02&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
    <pubDate>Sat, 23 Apr 2016 02:42:29 GMT</pubDate>
    <dc:creator>sunile_manjee</dc:creator>
    <dc:date>2016-04-23T02:42:29Z</dc:date>
    <item>
      <title>How to determine who ran query if Hive Impersonations = False?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106980#M25644</link>
      <description>&lt;P&gt;I have hive impersonations set to false.  Is there a simple way of determining who ran the job/query?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2016 09:23:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106980#M25644</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-04-20T09:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine who ran query if Hive Impersonations = False?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106981#M25645</link>
      <description>&lt;P&gt;Hi Sunile,&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;You can use a Hive hook to determine who submitted the query, even with doAs=false. As an example you can even use that to direct the query to an specific YARN queue. See the following for more info:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/beto983/Hive-Utils/blob/master/README.md" target="_blank"&gt;https://github.com/beto983/Hive-Utils/blob/master/README.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2016 05:46:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106981#M25645</guid>
      <dc:creator>aromero</dc:creator>
      <dc:date>2016-04-21T05:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine who ran query if Hive Impersonations = False?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106982#M25646</link>
      <description>&lt;P style="margin-left: 40px;"&gt; Thanks to &lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt; I found it can be done via tez api calls. &lt;/P&gt;&lt;P style="margin-left: 80px;"&gt;some examples thanks to &lt;A rel="user" href="https://community.cloudera.com/users/238/gbraccialli.html" nodeid="238"&gt;@Guilherme Braccialli&lt;/A&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="http://myserver.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330062211_6917b0b2-a34f-4735-b332-57083a18199f" target="_blank"&gt;http://myserver.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330062211_6917b0b2-a34f-4735-b332-57083a18199f&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;A href="http://myserver.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330064546_192ee370-d548-44fc-8073-903eaf6bf02" target="_blank"&gt;http://myserver.com:8188/ws/v1/timeline/HIVE_QUERY_ID/hive_20160330064546_192ee370-d548-44fc-8073-903eaf6bf02&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Sat, 23 Apr 2016 02:42:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106982#M25646</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-04-23T02:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine who ran query if Hive Impersonations = False?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106983#M25647</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2035/aromero.html" nodeid="2035"&gt;@Alberto Romero&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Notice that if you are re-using initialized sessions (hive.server2.tez.initialize.default.sessions) this solution will not work, because the properties are created only when the AM starts. When you use default sessions the AM will be created before your hook can define a custom property. &lt;/P&gt;&lt;P&gt;The hook solution work for non-default tez sessions and also for map-reduce.&lt;/P&gt;&lt;P&gt;Find &lt;A href="https://gist.github.com/gbraccialli/25e464486cde60686373c9f3a7d9fdb4"&gt;here&lt;/A&gt; some rest calls to RM API that works for all Tez scenarios (but not for map-reduce engine).&lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 08:03:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106983#M25647</guid>
      <dc:creator>gbraccialli3</dc:creator>
      <dc:date>2016-04-24T08:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine who ran query if Hive Impersonations = False?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106984#M25648</link>
      <description>&lt;P&gt;@Guilherme Braccialli Indeed, the hook is for not reusing initialised sessions.&lt;/P&gt;&lt;P&gt;Thanks very much for sharing the REST calls. Look quite useful to have handy. &lt;/P&gt;</description>
      <pubDate>Sun, 24 Apr 2016 14:15:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-determine-who-ran-query-if-Hive-Impersonations-False/m-p/106984#M25648</guid>
      <dc:creator>aromero</dc:creator>
      <dc:date>2016-04-24T14:15:41Z</dc:date>
    </item>
  </channel>
</rss>

