<?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 fetch the number of containers and Vcores allocated for a application once it is completed from YARN/ATS REST API? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-fetch-the-number-of-containers-and-Vcores-allocated/m-p/214788#M176700</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/253/ssathish.html" nodeid="253"&gt;@ssathish&lt;/A&gt;&lt;P&gt;Isn't it only for the currently running jobs? Do we able to see the job completed jobs containers and details.&lt;/P&gt;&lt;P&gt;Here is the Running job that shows Total Allocated Containers:&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/68411-running-containers.png"&gt;running-containers.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is the Completed Job that shows Total Allocated Containers: &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/68412-finished-job.png"&gt;finished-job.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But none of these Total Allocated Containers the get transformed to the REST API of RM. Below given XML's will show only the allocated contain&lt;/P&gt;&lt;P&gt;Running Job XML: &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/68415-running.xml"&gt;running.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Finished Job XML: &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/68414-finished-job.xml"&gt;finished-job.xml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And the Node REST API: &lt;/P&gt;&lt;PRE&gt;curl &lt;A href="http://&amp;lt;Nodemanager" target="_blank"&gt;http://&amp;lt;Nodemanager&lt;/A&gt; address&amp;gt;:&amp;lt;port&amp;gt;/ws/v1/node/containers/&amp;lt;containerID&amp;gt;&lt;/PRE&gt;&lt;P&gt;gives the containers details about only the running containers not about the completed containers.&lt;/P&gt;&lt;P&gt;Is there a way what we see on YARN Application UI &lt;STRONG&gt;&lt;EM&gt;&lt;A href="https://manag003:8090/cluster/appattempt/appattempt_1522212350151_40488_000001" target="_blank"&gt;https://manag003:8090/cluster/appattempt/appattempt_1522212350151_40488_000001&lt;/A&gt;&lt;/EM&gt;&lt;/STRONG&gt; for the &lt;B&gt;&lt;EM&gt;Total Allocated Containers: &lt;/EM&gt;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;to be transformed to REST API.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;H3&gt;&lt;/H3&gt;</description>
    <pubDate>Tue, 10 Apr 2018 14:09:21 GMT</pubDate>
    <dc:creator>dheer_vijji_rag</dc:creator>
    <dc:date>2018-04-10T14:09:21Z</dc:date>
  </channel>
</rss>

