<?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 Get hive query from resource manager using yarn REST api in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180956#M67770</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am exploring YARN REST api's and looking to get hive query from the configuration. I know how to get the query from the UI but can anyone suggest how to get the query from yarn REST api.&lt;/P&gt;&lt;P&gt;I am using &lt;STRONG&gt;&lt;A href="http://&amp;lt;rm-host&amp;gt;:8088/ws/v1/cluster/apps?states=running&amp;amp;user=hive" target="_blank"&gt;http://&amp;lt;rm-host&amp;gt;:8088/ws/v1/cluster/apps?states=running&amp;amp;user=hive&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2017 08:19:27 GMT</pubDate>
    <dc:creator>shashant_panwar</dc:creator>
    <dc:date>2017-09-08T08:19:27Z</dc:date>
    <item>
      <title>Get hive query from resource manager using yarn REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180956#M67770</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am exploring YARN REST api's and looking to get hive query from the configuration. I know how to get the query from the UI but can anyone suggest how to get the query from yarn REST api.&lt;/P&gt;&lt;P&gt;I am using &lt;STRONG&gt;&lt;A href="http://&amp;lt;rm-host&amp;gt;:8088/ws/v1/cluster/apps?states=running&amp;amp;user=hive" target="_blank"&gt;http://&amp;lt;rm-host&amp;gt;:8088/ws/v1/cluster/apps?states=running&amp;amp;user=hive&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 08:19:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180956#M67770</guid>
      <dc:creator>shashant_panwar</dc:creator>
      <dc:date>2017-09-08T08:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get hive query from resource manager using yarn REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180957#M67771</link>
      <description>&lt;P&gt;Update: I built a custom solution for this by using YARN RM API and by parsing job_tracker &amp;amp; hdfs config properties.&lt;/P&gt;&lt;P&gt;Here is the solution for ref: &lt;A href="https://github.com/panwars87/hadoopwork/tree/master/scripts/rm_parser"&gt;RM-Parser&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Feel free to fork it or provide any suggestions.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Sep 2017 00:43:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180957#M67771</guid>
      <dc:creator>shashant_panwar</dc:creator>
      <dc:date>2017-09-22T00:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get hive query from resource manager using yarn REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180958#M67772</link>
      <description>&lt;P&gt;Which URL need to be passed to get_user_query(job_tracker_url) function.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 20:17:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180958#M67772</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-10-05T20:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Get hive query from resource manager using yarn REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180959#M67773</link>
      <description>&lt;P&gt;Hi, Subash, &lt;/P&gt;&lt;P&gt;The code will handle passing the job tracker URL. ( it is the job tracker URL ). &lt;/P&gt;&lt;P&gt;In resource-manager -&amp;gt; Click on job -&amp;gt; Click on Application Master(Tracking Url).  &lt;/P&gt;&lt;P&gt;However, after some testing, I found the above code is working MR code only as Tez and Spark jobs redirects to another URL. &lt;/P&gt;&lt;P&gt;I need to research a bit to make it work for all kind of apps. I hope this helps!&lt;/P&gt;&lt;P&gt;--&lt;/P&gt;&lt;P&gt;Shashant&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:19:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180959#M67773</guid>
      <dc:creator>shashant_panwar</dc:creator>
      <dc:date>2017-10-05T21:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Get hive query from resource manager using yarn REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180960#M67774</link>
      <description>&lt;P&gt;Update: In my recent changes, you will find the "get_user_query(job_tracker_url)" commented out. &lt;/P&gt;&lt;P&gt;Instead, I am fetching the Tracking URL for the job which is taking more time. But, the code is still there. Feel free to play with it.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 21:23:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180960#M67774</guid>
      <dc:creator>shashant_panwar</dc:creator>
      <dc:date>2017-10-05T21:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get hive query from resource manager using yarn REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180961#M67775</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/11879/shashantpanwar.html" nodeid="11879"&gt;@Shashant &lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can try out ranger audit logs especially for Hive. Ranger captures all the column and table name. Few customization in code will help to get the full hive query. &lt;/P&gt;&lt;P&gt;Subash &lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 16:05:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180961#M67775</guid>
      <dc:creator>subash_sharma</dc:creator>
      <dc:date>2017-10-06T16:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get hive query from resource manager using yarn REST api</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180962#M67776</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/14607/subashsharma.html" nodeid="14607"&gt;@subash sharma&lt;/A&gt; . I will check that as well..&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 01:11:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Get-hive-query-from-resource-manager-using-yarn-REST-api/m-p/180962#M67776</guid>
      <dc:creator>shashant_panwar</dc:creator>
      <dc:date>2017-10-17T01:11:21Z</dc:date>
    </item>
  </channel>
</rss>

