<?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: YARN logs for applicationId - for specific period in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-logs-for-applicationId-for-specific-period/m-p/225470#M72655</link>
    <description>&lt;P&gt;When you use "-log_files spark.log", you are basically asking for files of exact same name (spark.log). Probably the files older than 2 days are rotated to different names and hence not showing up.&lt;/P&gt;&lt;P&gt;Alternately, you can use "-log_files_pattern &amp;lt;Log File Pattern&amp;gt;" to fetch all files which match a pattern. So maybe something like this will fetch all old logs for you "-log_files_pattern spark*"&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2017 05:53:55 GMT</pubDate>
    <dc:creator>gsaha</dc:creator>
    <dc:date>2017-12-15T05:53:55Z</dc:date>
    <item>
      <title>YARN logs for applicationId - for specific period</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-logs-for-applicationId-for-specific-period/m-p/225469#M72654</link>
      <description>&lt;P&gt;Hello - is there a way to get the YARN logs for an applicationId for a specific period ?&lt;/P&gt;&lt;P&gt;when i use command :&lt;/P&gt;&lt;PRE&gt;yarn logs application -applicationId &amp;lt;applicationId&amp;gt;  -log_files spark.log &lt;/PRE&gt;&lt;P&gt;.. it is not giving me the older log files (eg. 2 days old log files)&lt;/P&gt;&lt;P&gt;any way for to get this log file, w/o having to goto the consolidated yarn resource manager log files  &lt;/P&gt;&lt;P&gt;btw, the yarn logs retention is set to 30 days in yarn-site.xml  &lt;/P&gt;&lt;P&gt;Another question :&lt;/P&gt;&lt;P&gt;whet s the option -&amp;gt; &lt;B&gt;-log_files &lt;/B&gt;used for ? what are the options i can provide for this ?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 05:27:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-logs-for-applicationId-for-specific-period/m-p/225469#M72654</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-12-15T05:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: YARN logs for applicationId - for specific period</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-logs-for-applicationId-for-specific-period/m-p/225470#M72655</link>
      <description>&lt;P&gt;When you use "-log_files spark.log", you are basically asking for files of exact same name (spark.log). Probably the files older than 2 days are rotated to different names and hence not showing up.&lt;/P&gt;&lt;P&gt;Alternately, you can use "-log_files_pattern &amp;lt;Log File Pattern&amp;gt;" to fetch all files which match a pattern. So maybe something like this will fetch all old logs for you "-log_files_pattern spark*"&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 05:53:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-logs-for-applicationId-for-specific-period/m-p/225470#M72655</guid>
      <dc:creator>gsaha</dc:creator>
      <dc:date>2017-12-15T05:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: YARN logs for applicationId - for specific period</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-logs-for-applicationId-for-specific-period/m-p/225471#M72656</link>
      <description>&lt;P&gt;thanks, that helps ! &lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 07:46:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/YARN-logs-for-applicationId-for-specific-period/m-p/225471#M72656</guid>
      <dc:creator>karan_alang1</dc:creator>
      <dc:date>2017-12-15T07:46:28Z</dc:date>
    </item>
  </channel>
</rss>

