<?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 Approach to collect logs from mappers in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132389#M31459</link>
    <description>&lt;P&gt;I have a YARN map/reduce application. &lt;/P&gt;&lt;P&gt;In mapper I use log4j to log certain cases. After job exection is finished I want to analyze logs from ALL mappers.
As there're a lot of mappers in my job, log analysis becomes rather painful job...&lt;/P&gt;&lt;P&gt;Is there a way to write log from mappers to some aggregated file to have all the record in one place? Or probaly there's an approach to combine log files from all mappers from a concrete job?&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2016 16:58:03 GMT</pubDate>
    <dc:creator>dzianis_frydlia</dc:creator>
    <dc:date>2016-06-10T16:58:03Z</dc:date>
    <item>
      <title>Approach to collect logs from mappers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132389#M31459</link>
      <description>&lt;P&gt;I have a YARN map/reduce application. &lt;/P&gt;&lt;P&gt;In mapper I use log4j to log certain cases. After job exection is finished I want to analyze logs from ALL mappers.
As there're a lot of mappers in my job, log analysis becomes rather painful job...&lt;/P&gt;&lt;P&gt;Is there a way to write log from mappers to some aggregated file to have all the record in one place? Or probaly there's an approach to combine log files from all mappers from a concrete job?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 16:58:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132389#M31459</guid>
      <dc:creator>dzianis_frydlia</dc:creator>
      <dc:date>2016-06-10T16:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Approach to collect logs from mappers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132390#M31460</link>
      <description>&lt;P&gt;if you are running mapreduce over yarn then enable yarn remote log aggregation(http://hortonworks.com/blog/simplifying-user-logs-management-and-access-in-yarn/), it will centralized all logging for you and you can perform your analysis over on aggregated logs.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 17:01:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132390#M31460</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-10T17:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Approach to collect logs from mappers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132391#M31461</link>
      <description>&lt;P&gt;yeah it should be enabled by default though. You would get the log files through the yarn logs command line or you can use pig as well.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/33703/mining-tez-app-log-file-with-pig-script.html" target="_blank"&gt;https://community.hortonworks.com/articles/33703/mining-tez-app-log-file-with-pig-script.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 17:06:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132391#M31461</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-06-10T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Approach to collect logs from mappers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132392#M31462</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/8919/rajkumarsingh.html" nodeid="8919"&gt;@Rajkumar Singh&lt;/A&gt;!&lt;/P&gt;&lt;P&gt;You would only add that it's rather convenient for me to use the following approach:&lt;/P&gt;&lt;PRE&gt;yarn logs -applicationId application_1465548978834_0004 | grep my.foo.class &amp;gt; /home/user/log2.txt&lt;/PRE&gt;&lt;P&gt;With this command I can filter all the log entries for the class I want to analyze.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 17:08:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Approach-to-collect-logs-from-mappers/m-p/132392#M31462</guid>
      <dc:creator>dzianis_frydlia</dc:creator>
      <dc:date>2016-06-10T17:08:14Z</dc:date>
    </item>
  </channel>
</rss>

