<?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: Is there any API for YARN &amp;amp; SPARK History Server in Cloudera Manager in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-there-any-API-for-YARN-amp-SPARK-History-Server-in/m-p/303880#M221774</link>
    <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31523"&gt;@tjangid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was something informational but unfortunately this is not what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, since I didn't find any API earlier, I have used &lt;EM&gt;urllib2&amp;nbsp;&lt;/EM&gt;command and connected to History Server directly and then used some &lt;EM&gt;regexp's&lt;/EM&gt; to extract the required content which is (&lt;EM&gt;hive.access.subject.name)&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Oct 2020 13:33:38 GMT</pubDate>
    <dc:creator>KarthiK439</dc:creator>
    <dc:date>2020-10-04T13:33:38Z</dc:date>
    <item>
      <title>Is there any API for YARN &amp; SPARK History Server in Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-any-API-for-YARN-amp-SPARK-History-Server-in/m-p/303747#M221691</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the list of all running yarn/spark applications along with the actual user name for the queries running with user as hive.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) I was aware that we can use&amp;nbsp;&lt;STRONG&gt;yarn application -list&lt;/STRONG&gt; to get the list of running applications and&amp;nbsp;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&lt;STRONG&gt;hive.access.subject.name&lt;/STRONG&gt;&amp;nbsp;in the configuration page of yarn history server/resource manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But for point#2, I need to manually check it for each application which is not a viable solution.&lt;/P&gt;&lt;P&gt;So, I was trying to check if there is any API available for YARN &amp;amp; SPARK history server to get the actual user of the query/application.&lt;/P&gt;&lt;P&gt;(OR)&lt;/P&gt;&lt;P&gt;It would great if we have any command to get the &lt;STRONG&gt;actual user name&lt;/STRONG&gt; for a running application.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly let me know if any additional information required.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 16:31:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-any-API-for-YARN-amp-SPARK-History-Server-in/m-p/303747#M221691</guid>
      <dc:creator>KarthiK439</dc:creator>
      <dc:date>2020-09-30T16:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API for YARN &amp; SPARK History Server in Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-any-API-for-YARN-amp-SPARK-History-Server-in/m-p/303808#M221722</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/82012"&gt;@KarthiK439&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can get the list of Yarn Applications using the below API&lt;/P&gt;&lt;P&gt;&lt;A href="https://archive.cloudera.com/cm7/7.0.3/generic/jar/cm_api/apidocs/resource_YarnApplicationsResource.html" target="_blank"&gt;https://archive.cloudera.com/cm7/7.0.3/generic/jar/cm_api/apidocs/resource_YarnApplicationsResource.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this is what you are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;I&gt;Was your question answered? Make sure to mark the answer as the accepted solution.&lt;/I&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;I&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 14:36:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-any-API-for-YARN-amp-SPARK-History-Server-in/m-p/303808#M221722</guid>
      <dc:creator>tjangid</dc:creator>
      <dc:date>2020-10-01T14:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any API for YARN &amp; SPARK History Server in Cloudera Manager</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-any-API-for-YARN-amp-SPARK-History-Server-in/m-p/303880#M221774</link>
      <description>&lt;P&gt;Thanks for your response&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/31523"&gt;@tjangid&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This was something informational but unfortunately this is not what I was looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyways, since I didn't find any API earlier, I have used &lt;EM&gt;urllib2&amp;nbsp;&lt;/EM&gt;command and connected to History Server directly and then used some &lt;EM&gt;regexp's&lt;/EM&gt; to extract the required content which is (&lt;EM&gt;hive.access.subject.name)&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Oct 2020 13:33:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-any-API-for-YARN-amp-SPARK-History-Server-in/m-p/303880#M221774</guid>
      <dc:creator>KarthiK439</dc:creator>
      <dc:date>2020-10-04T13:33:38Z</dc:date>
    </item>
  </channel>
</rss>

