<?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: REST API path to get cluster memory used for a particular queue for a time period in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239617#M85859</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the explanation and commands, but i am getting 404 not found error when i try to run this command using curl. I see there are some special characters and was wondering if it has to do anything with it?&lt;/P&gt;&lt;P&gt;For eg below path has a &lt;B&gt;☆ before tTime and after max there is a = curly sign.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AvailableMB._max" target="_blank"&gt;http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AvailableMB._max&lt;/A&gt;&lt;STRONG&gt;≈&lt;/STRONG&gt;pId=resourcemanager&lt;STRONG&gt;☆&lt;/STRONG&gt;tTime=1545613074&amp;amp;endTime=1546217874&lt;/P&gt;</description>
    <pubDate>Mon, 31 Dec 2018 10:19:34 GMT</pubDate>
    <dc:creator>pmj</dc:creator>
    <dc:date>2018-12-31T10:19:34Z</dc:date>
    <item>
      <title>REST API path to get cluster memory used for a particular queue for a time period</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239615#M85857</link>
      <description>&lt;P&gt;Hi, i am trying to get the ambari metrics rest api path to get the memory usage for a particular queue Q1 for the last 1 week. how can i get that? &lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:01:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239615#M85857</guid>
      <dc:creator>pmj</dc:creator>
      <dc:date>2022-09-16T14:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: REST API path to get cluster memory used for a particular queue for a time period</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239616#M85858</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14451/pjalleda.html" nodeid="14451"&gt;@PJ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Last 7 Days of Memory For Yarn Queues :&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;1. Allocated Memory of "default" queue:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AllocatedMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545612799&amp;amp;endTime=1546217599" target="_blank"&gt;http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AllocatedMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545612799&amp;amp;endTime=1546217599&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;2. Reserved Memory of "default" queue:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.default.ReservedMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545612890&amp;amp;endTime=1546217690" target="_blank"&gt;http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.default.ReservedMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545612890&amp;amp;endTime=1546217690&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;3. Pending Memory of "default" queue:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AllocatedMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545612940&amp;amp;endTime=1546217740" target="_blank"&gt;http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AllocatedMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545612940&amp;amp;endTime=1546217740&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;4. Available Memory of "default" queue&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;A href="http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AvailableMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545613074&amp;amp;endTime=1546217874" target="_blank"&gt;http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AvailableMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545613074&amp;amp;endTime=1546217874&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Please replace the following in the above queries:&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;1. "AMS_COLLECTOR_HOSTNAME:6188" with your Ambari Metrics Collector Hostname and port (default port is 6188)&lt;BR /&gt;&lt;BR /&gt;2. Name of the queue "default" with the name of your own queue which you want to monitor.&lt;BR /&gt;&lt;BR /&gt;3. Change the StartTime and endTime in the query to cover last 7 days.&lt;BR /&gt;You can use some online tool to generate the EPOC time like &lt;A href="https://www.epochconverter.com/" target="_blank"&gt;https://www.epochconverter.com/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Make sure that the generated epooc time is in milliseconds like 10 digits.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 09:06:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239616#M85858</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-12-31T09:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: REST API path to get cluster memory used for a particular queue for a time period</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239617#M85859</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for the explanation and commands, but i am getting 404 not found error when i try to run this command using curl. I see there are some special characters and was wondering if it has to do anything with it?&lt;/P&gt;&lt;P&gt;For eg below path has a &lt;B&gt;☆ before tTime and after max there is a = curly sign.&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AvailableMB._max" target="_blank"&gt;http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AvailableMB._max&lt;/A&gt;&lt;STRONG&gt;≈&lt;/STRONG&gt;pId=resourcemanager&lt;STRONG&gt;☆&lt;/STRONG&gt;tTime=1545613074&amp;amp;endTime=1546217874&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 10:19:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239617#M85859</guid>
      <dc:creator>pmj</dc:creator>
      <dc:date>2018-12-31T10:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: REST API path to get cluster memory used for a particular queue for a time period</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239618#M85860</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;It works, Great!! There was a typo in your command. &lt;/P&gt;&lt;P&gt;This works for me:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;&lt;A href="http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AvailableMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545613074&amp;amp;endTime=1546217874" target="_blank"&gt;http://$AMS_COLLECTOR_HOSTNAME:6188/ws/v1/timeline/metrics?metricNames=yarn.QueueMetrics.Queue=root.default.AvailableMB._max&amp;amp;appId=resourcemanager&amp;amp;startTime=1545613074&amp;amp;endTime=1546217874&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks again.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 11:13:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/REST-API-path-to-get-cluster-memory-used-for-a-particular/m-p/239618#M85860</guid>
      <dc:creator>pmj</dc:creator>
      <dc:date>2018-12-31T11:13:24Z</dc:date>
    </item>
  </channel>
</rss>

