<?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: What is the difference between timeline server api and resource manager api calls for applications in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163718#M126092</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12468/vishalprakashshah.html" nodeid="12468"&gt;@Vishal Prakash Shah&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I'm not 100% sure but I think this is expected as RM does not keep historical information of all the Applications. Main purpose of Yarn Application Time server is to maintain historical information(yarn.timeline-service.ttl-ms is the parameter for retention) about all the YARN jobs hence you see lot of results with Timeline API.&lt;/P&gt;&lt;P&gt;Default value of yarn.timeline-service.ttl-ms is 2678400000 ms i.e. 31 days&lt;/P&gt;&lt;P&gt;You can read more about timeline server here - &lt;A href="https://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/TimelineServer.html" target="_blank"&gt;https://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/TimelineServer.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Dec 2016 23:58:19 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2016-12-20T23:58:19Z</dc:date>
    <item>
      <title>What is the difference between timeline server api and resource manager api calls for applications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163717#M126091</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;1) hostname:8188/ws/v1/applicationhistor/apps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;2) hostname:8088/ws/vi/cluster/apps&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The first url is rest api call from timeline server and second url is from RM api. Both the url's are supposed to return list of ALL applications (succeeded/killed/failed) run on the cluster.&lt;/P&gt;&lt;P&gt;But there are a number of applications appearing in timeline server api call but NOT in RM api call. &lt;/P&gt;&lt;P&gt;Is this difference expected? What is the purpose/difference between these 2 approach of getting list of application run on cluster?&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;a&lt;/EM&gt;&lt;EM&gt;pplication_1477690913969_0092 and a&lt;/EM&gt;&lt;EM&gt;pplication_1477690913969_0093 &lt;/EM&gt;appears in timeline svr api call but doesn't gets listed in RM api call.&lt;/P&gt;&lt;P&gt;Please see the attached screenshots.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10540-screen2.jpg"&gt;screen2.jpg&lt;/A&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10551-screen3.jpg"&gt;screen3.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 18:15:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163717#M126091</guid>
      <dc:creator>vishalprakash_s</dc:creator>
      <dc:date>2016-12-20T18:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between timeline server api and resource manager api calls for applications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163718#M126092</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12468/vishalprakashshah.html" nodeid="12468"&gt;@Vishal Prakash Shah&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I'm not 100% sure but I think this is expected as RM does not keep historical information of all the Applications. Main purpose of Yarn Application Time server is to maintain historical information(yarn.timeline-service.ttl-ms is the parameter for retention) about all the YARN jobs hence you see lot of results with Timeline API.&lt;/P&gt;&lt;P&gt;Default value of yarn.timeline-service.ttl-ms is 2678400000 ms i.e. 31 days&lt;/P&gt;&lt;P&gt;You can read more about timeline server here - &lt;A href="https://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/TimelineServer.html" target="_blank"&gt;https://hadoop.apache.org/docs/r2.4.1/hadoop-yarn/hadoop-yarn-site/TimelineServer.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 23:58:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163718#M126092</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-12-20T23:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between timeline server api and resource manager api calls for applications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163719#M126093</link>
      <description>&lt;P&gt;In my setup, yarn.timeline-service.ttl-ms is configured with default value. Still I can see the both api's returning application details for more than 3 months. Any idea why??&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 00:06:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163719#M126093</guid>
      <dc:creator>vishalprakash_s</dc:creator>
      <dc:date>2016-12-21T00:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between timeline server api and resource manager api calls for applications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163720#M126094</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12468/vishalprakashshah.html" nodeid="12468"&gt;@Vishal Prakash Shah&lt;/A&gt; - Can you please post value of your yarn.timeline-service.ttl-ms?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 00:14:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163720#M126094</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-12-21T00:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between timeline server api and resource manager api calls for applications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163721#M126095</link>
      <description>&lt;P&gt;My question is-&lt;/P&gt;&lt;P&gt;if &lt;EM&gt;a&lt;/EM&gt;&lt;EM&gt;pplication_1477690913969_0092 &lt;/EM&gt;is shown as an application being run on cluster, then why command &lt;EM&gt;yarn application -status &lt;/EM&gt;&lt;EM&gt;a&lt;/EM&gt;&lt;EM&gt;pplication_1477690913969_0092 &lt;/EM&gt;is giving error. The application was run on 30th Nov, 2016. It appears in timeline server api call but not in resource manager api call. There are results in rm api call which were run before 30th Nov.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 00:16:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163721#M126095</guid>
      <dc:creator>vishalprakash_s</dc:creator>
      <dc:date>2016-12-21T00:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between timeline server api and resource manager api calls for applications</title>
      <link>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163722#M126096</link>
      <description>&lt;P&gt;It is 2678400000  &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/10565-ttl.jpg"&gt;ttl.jpg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 00:18:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/What-is-the-difference-between-timeline-server-api-and/m-p/163722#M126096</guid>
      <dc:creator>vishalprakash_s</dc:creator>
      <dc:date>2016-12-21T00:18:54Z</dc:date>
    </item>
  </channel>
</rss>

