<?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 Is there a way to find out the query used by a particular job using the application ID? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-find-out-the-query-used-by-a-particular/m-p/167520#M49807</link>
    <description>&lt;P&gt;I have one application id which i got from Resource manager and since this job ran by hive as user so i am not able to find out exactly who ran that job.



So i have application ID and now i need to know the code or query used by that particular application id.



Is there a way to get any kind of logs from which i can get the code or query used by that application ID&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2016 14:24:44 GMT</pubDate>
    <dc:creator>Yukti</dc:creator>
    <dc:date>2016-12-22T14:24:44Z</dc:date>
    <item>
      <title>Is there a way to find out the query used by a particular job using the application ID?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-find-out-the-query-used-by-a-particular/m-p/167520#M49807</link>
      <description>&lt;P&gt;I have one application id which i got from Resource manager and since this job ran by hive as user so i am not able to find out exactly who ran that job.



So i have application ID and now i need to know the code or query used by that particular application id.



Is there a way to get any kind of logs from which i can get the code or query used by that application ID&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2016 14:24:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-find-out-the-query-used-by-a-particular/m-p/167520#M49807</guid>
      <dc:creator>Yukti</dc:creator>
      <dc:date>2016-12-22T14:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to find out the query used by a particular job using the application ID?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-find-out-the-query-used-by-a-particular/m-p/167521#M49808</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12568/yukagr19.html" nodeid="12568" target="_blank"&gt;@Yukti Agrawal&lt;/A&gt;&lt;P&gt;if you have a tez view set up with ambari then you can open that and search with application id, opening this you will able to see the query&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10662-screen-shot-2016-12-22-at-115653-am.png" style="width: 2308px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20293iF26B6C3CCD9FE686/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10662-screen-shot-2016-12-22-at-115653-am.png" alt="10662-screen-shot-2016-12-22-at-115653-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 11:08:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-find-out-the-query-used-by-a-particular/m-p/167521#M49808</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2019-08-18T11:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to find out the query used by a particular job using the application ID?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-find-out-the-query-used-by-a-particular/m-p/167522#M49809</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12568/yukagr19.html" nodeid="12568" target="_blank"&gt;@Yukti Agrawal&lt;/A&gt;
&lt;P&gt;On accessing the RM UI and click on the applicationId and corresponding logs link. It will take you to a screen something as below.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="10663-screen-shot-2016-12-22-at-115727.png" style="width: 2018px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/20292iAF6E2EAB64560B56/image-size/medium?v=v2&amp;amp;px=400" role="button" title="10663-screen-shot-2016-12-22-at-115727.png" alt="10663-screen-shot-2016-12-22-at-115727.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here you would see a file dag_*.dot, this should give you the query/MR graph that is being executed. &lt;/P&gt;&lt;P&gt;Other option would be if the execution engine is TEZ, then you can leverage TEZ UI to view the actual query as well.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 11:07:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-find-out-the-query-used-by-a-particular/m-p/167522#M49809</guid>
      <dc:creator>sgowda</dc:creator>
      <dc:date>2019-08-18T11:07:59Z</dc:date>
    </item>
  </channel>
</rss>

