<?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 Resource Manager API's in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95477#M8821</link>
    <description>&lt;P&gt;Looking at hitting allt he right API's for charge back scenario.  In the following call to RM API's &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://192.168.245.131:8088/ws/v1/cluster/apps/application_1442459299785_0002" target="_blank"&gt;http://192.168.245.131:8088/ws/v1/cluster/apps/application_1442459299785_0002&lt;/A&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;What is memory Seconds, how to measure the memory used by an application using this number&lt;/LI&gt;&lt;LI&gt;What is vcoreSEconds ?  Is it directly proportional to the CPU seconds ?&lt;/LI&gt;&lt;LI&gt;Is running containers supposed to show us all the containers launched for that app ?&lt;/LI&gt;&lt;LI&gt;Allocated MB, allocated VCores are also showing invalid values or zeros.&lt;/LI&gt;&lt;LI&gt;How frequently can I call this API. I don’t want to miss any records, but at the same time we don’t want duplicate records.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Output of call below&lt;/P&gt;&lt;PRE&gt;&amp;lt;app&amp;gt;
&amp;lt;id&amp;gt;application_1442459299785_0002&amp;lt;/id&amp;gt;
&amp;lt;user&amp;gt;hive&amp;lt;/user&amp;gt;
&amp;lt;name&amp;gt;HIVE-521c0020-4786-4e55-8822-abe11a517ba1&amp;lt;/name&amp;gt;
&amp;lt;queue&amp;gt;default&amp;lt;/queue&amp;gt;
&amp;lt;state&amp;gt;FINISHED&amp;lt;/state&amp;gt;
&amp;lt;finalStatus&amp;gt;SUCCEEDED&amp;lt;/finalStatus&amp;gt;
&amp;lt;progress&amp;gt;100.0&amp;lt;/progress&amp;gt;
&amp;lt;trackingUI&amp;gt;History&amp;lt;/trackingUI&amp;gt;&amp;lt;trackingUrl&amp;gt;
&lt;A href="http://sandbox.hortonworks.com:8088/proxy/application_1442459299785_0002/" target="_blank"&gt;http://sandbox.hortonworks.com:8088/proxy/application_1442459299785_0002/&lt;/A&gt;
&amp;lt;/trackingUrl&amp;gt;
&amp;lt;diagnostics&amp;gt;null&amp;lt;/diagnostics&amp;gt;
&amp;lt;clusterId&amp;gt;1444871487358&amp;lt;/clusterId&amp;gt;
&amp;lt;applicationType&amp;gt;TEZ&amp;lt;/applicationType&amp;gt;
&amp;lt;applicationTags/&amp;gt;
&amp;lt;startedTime&amp;gt;1442460228059&amp;lt;/startedTime&amp;gt;
&amp;lt;finishedTime&amp;gt;1442502311402&amp;lt;/finishedTime&amp;gt;
&amp;lt;elapsedTime&amp;gt;42083343&amp;lt;/elapsedTime&amp;gt;
&amp;lt;amContainerLogs&amp;gt;
&lt;A href="http://sandbox.hortonworks.com:8042/node/containerlogs/container_e17_1442459299785_0002_01_000001/hive" target="_blank"&gt;http://sandbox.hortonworks.com:8042/node/containerlogs/container_e17_1442459299785_0002_01_000001/hive&lt;/A&gt;
&amp;lt;/amContainerLogs&amp;gt;
&amp;lt;amHostHttpAddress&amp;gt;sandbox.hortonworks.com:8042&amp;lt;/amHostHttpAddress&amp;gt;
&amp;lt;allocatedMB&amp;gt;-1&amp;lt;/allocatedMB&amp;gt;
&amp;lt;allocatedVCores&amp;gt;-1&amp;lt;/allocatedVCores&amp;gt;
&amp;lt;runningContainers&amp;gt;-1&amp;lt;/runningContainers&amp;gt;
&amp;lt;memorySeconds&amp;gt;10540022&amp;lt;/memorySeconds&amp;gt;
&amp;lt;vcoreSeconds&amp;gt;42158&amp;lt;/vcoreSeconds&amp;gt;
&amp;lt;preemptedResourceMB&amp;gt;0&amp;lt;/preemptedResourceMB&amp;gt;
&amp;lt;preemptedResourceVCores&amp;gt;0&amp;lt;/preemptedResourceVCores&amp;gt;
&amp;lt;numNonAMContainerPreempted&amp;gt;0&amp;lt;/numNonAMContainerPreempted&amp;gt;
&amp;lt;numAMContainerPreempted&amp;gt;0&amp;lt;/numAMContainerPreempted&amp;gt;
&amp;lt;logAggregationStatus&amp;gt;NOT_START&amp;lt;/logAggregationStatus&amp;gt;
&amp;lt;/app&amp;gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:44:16 GMT</pubDate>
    <dc:creator>drice1</dc:creator>
    <dc:date>2022-09-16T09:44:16Z</dc:date>
    <item>
      <title>Resource Manager API's</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95477#M8821</link>
      <description>&lt;P&gt;Looking at hitting allt he right API's for charge back scenario.  In the following call to RM API's &lt;/P&gt;&lt;PRE&gt;&lt;A href="http://192.168.245.131:8088/ws/v1/cluster/apps/application_1442459299785_0002" target="_blank"&gt;http://192.168.245.131:8088/ws/v1/cluster/apps/application_1442459299785_0002&lt;/A&gt;&lt;/PRE&gt;&lt;OL&gt;&lt;LI&gt;What is memory Seconds, how to measure the memory used by an application using this number&lt;/LI&gt;&lt;LI&gt;What is vcoreSEconds ?  Is it directly proportional to the CPU seconds ?&lt;/LI&gt;&lt;LI&gt;Is running containers supposed to show us all the containers launched for that app ?&lt;/LI&gt;&lt;LI&gt;Allocated MB, allocated VCores are also showing invalid values or zeros.&lt;/LI&gt;&lt;LI&gt;How frequently can I call this API. I don’t want to miss any records, but at the same time we don’t want duplicate records.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Output of call below&lt;/P&gt;&lt;PRE&gt;&amp;lt;app&amp;gt;
&amp;lt;id&amp;gt;application_1442459299785_0002&amp;lt;/id&amp;gt;
&amp;lt;user&amp;gt;hive&amp;lt;/user&amp;gt;
&amp;lt;name&amp;gt;HIVE-521c0020-4786-4e55-8822-abe11a517ba1&amp;lt;/name&amp;gt;
&amp;lt;queue&amp;gt;default&amp;lt;/queue&amp;gt;
&amp;lt;state&amp;gt;FINISHED&amp;lt;/state&amp;gt;
&amp;lt;finalStatus&amp;gt;SUCCEEDED&amp;lt;/finalStatus&amp;gt;
&amp;lt;progress&amp;gt;100.0&amp;lt;/progress&amp;gt;
&amp;lt;trackingUI&amp;gt;History&amp;lt;/trackingUI&amp;gt;&amp;lt;trackingUrl&amp;gt;
&lt;A href="http://sandbox.hortonworks.com:8088/proxy/application_1442459299785_0002/" target="_blank"&gt;http://sandbox.hortonworks.com:8088/proxy/application_1442459299785_0002/&lt;/A&gt;
&amp;lt;/trackingUrl&amp;gt;
&amp;lt;diagnostics&amp;gt;null&amp;lt;/diagnostics&amp;gt;
&amp;lt;clusterId&amp;gt;1444871487358&amp;lt;/clusterId&amp;gt;
&amp;lt;applicationType&amp;gt;TEZ&amp;lt;/applicationType&amp;gt;
&amp;lt;applicationTags/&amp;gt;
&amp;lt;startedTime&amp;gt;1442460228059&amp;lt;/startedTime&amp;gt;
&amp;lt;finishedTime&amp;gt;1442502311402&amp;lt;/finishedTime&amp;gt;
&amp;lt;elapsedTime&amp;gt;42083343&amp;lt;/elapsedTime&amp;gt;
&amp;lt;amContainerLogs&amp;gt;
&lt;A href="http://sandbox.hortonworks.com:8042/node/containerlogs/container_e17_1442459299785_0002_01_000001/hive" target="_blank"&gt;http://sandbox.hortonworks.com:8042/node/containerlogs/container_e17_1442459299785_0002_01_000001/hive&lt;/A&gt;
&amp;lt;/amContainerLogs&amp;gt;
&amp;lt;amHostHttpAddress&amp;gt;sandbox.hortonworks.com:8042&amp;lt;/amHostHttpAddress&amp;gt;
&amp;lt;allocatedMB&amp;gt;-1&amp;lt;/allocatedMB&amp;gt;
&amp;lt;allocatedVCores&amp;gt;-1&amp;lt;/allocatedVCores&amp;gt;
&amp;lt;runningContainers&amp;gt;-1&amp;lt;/runningContainers&amp;gt;
&amp;lt;memorySeconds&amp;gt;10540022&amp;lt;/memorySeconds&amp;gt;
&amp;lt;vcoreSeconds&amp;gt;42158&amp;lt;/vcoreSeconds&amp;gt;
&amp;lt;preemptedResourceMB&amp;gt;0&amp;lt;/preemptedResourceMB&amp;gt;
&amp;lt;preemptedResourceVCores&amp;gt;0&amp;lt;/preemptedResourceVCores&amp;gt;
&amp;lt;numNonAMContainerPreempted&amp;gt;0&amp;lt;/numNonAMContainerPreempted&amp;gt;
&amp;lt;numAMContainerPreempted&amp;gt;0&amp;lt;/numAMContainerPreempted&amp;gt;
&amp;lt;logAggregationStatus&amp;gt;NOT_START&amp;lt;/logAggregationStatus&amp;gt;
&amp;lt;/app&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:44:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95477#M8821</guid>
      <dc:creator>drice1</dc:creator>
      <dc:date>2022-09-16T09:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Manager API's</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95478#M8822</link>
      <description>&lt;P&gt;Some information in this &lt;A href="https://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html#Application_API"&gt;link&lt;/A&gt; is useful looking under this section &lt;/P&gt;&lt;H4&gt;Elements of the &lt;EM&gt;app&lt;/EM&gt; (Application) object&lt;/H4&gt;&lt;P&gt;, but seems a little vague, with what the meanings are to the above output.  Maybe the -1's are due to the application being completed already?  Curious to get others thoughts on how or if they have done a similar scenario for charge back purposes before.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 20:57:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95478#M8822</guid>
      <dc:creator>drice1</dc:creator>
      <dc:date>2015-10-15T20:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Manager API's</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95479#M8823</link>
      <description>&lt;P&gt;Looks like it is because of the application being completed because when running there is much more detail in this output of this call.  I think I'm ok at this point, but please share experiences&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2015 21:08:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95479#M8823</guid>
      <dc:creator>drice1</dc:creator>
      <dc:date>2015-10-15T21:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Resource Manager API's</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95480#M8824</link>
      <description>&lt;P&gt;Got this information from Sai Nukavarapu and wanted to add it back to the thread in case anyone else needs to have more context to these meanings. &lt;/P&gt;&lt;P&gt;- What MemorySeconds means and vCoreSeconds mean.&lt;/P&gt;&lt;P&gt;1.  memorySeconds -  The amount of memory the application has allocated (megabyte-seconds); &lt;/P&gt;&lt;P&gt;Aggregated amount of memory (in megabytes) the application has allocated X the number of seconds the application has been running.&lt;/P&gt;&lt;P&gt;2.  The amount of CPU resources the application has allocated (virtual core-seconds) &lt;/P&gt;&lt;P&gt; Aggregated number of vcores that the application has allocated X  the number of seconds the application has been running.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 00:59:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Resource-Manager-API-s/m-p/95480#M8824</guid>
      <dc:creator>drice1</dc:creator>
      <dc:date>2015-10-27T00:59:04Z</dc:date>
    </item>
  </channel>
</rss>

