<?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: Can't find the MapReduce Log files in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133115#M31532</link>
    <description>&lt;P&gt;Hi Milind Rao. You can use Ambari -&amp;gt; YARN -&amp;gt; Quick Links -&amp;gt; ResourcesManager UI for ApplicationId&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 22:26:03 GMT</pubDate>
    <dc:creator>erkansirin78</dc:creator>
    <dc:date>2017-11-30T22:26:03Z</dc:date>
    <item>
      <title>Can't find the MapReduce Log files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133111#M31528</link>
      <description>&lt;P&gt;I can't find the log files from my MapReduce jobs. I'm using MR2 in HortonWorks 2.4.3 sandbox I got from &lt;A href="http://hortonworks.com/products/sandbox/"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;In an effort to try to create the logs in one directory, I have set the following environment variables&lt;/P&gt;&lt;PRE&gt;export HADOOP_MAPRED_HOME=/home/hadoop
export HADOOP_YARN_HOME=/hadoop/yarn
export YARN_LOG_DIR=/hadoop/yarn/log
export HADOOP_LOG_DIR=/hadoop/yarn/log
export HADOOP_MAPRED_LOG_DIR=/hadoop/yarn/log&lt;/PRE&gt;&lt;P&gt;I'm not sure if setting these in my environment session has any effect when running the job.  Presumably I have to set this in Ambari?&lt;/P&gt;&lt;P&gt;I do see the job history logs in /var/log/hadoop-mapreduce/mapred/.  But I don't see the logs from my map reduce program itself.  Following the link in Ambari for MapReduce JobHistory UI takes me to &lt;A href="http://&amp;lt;&amp;gt;:19888/jobhistory" target="_blank"&gt;http://&amp;lt;&amp;gt;:19888/jobhistory&lt;/A&gt; which shows no jobs.&lt;/P&gt;&lt;P&gt;I have tried starting my mapreduce job using &lt;/P&gt;&lt;PRE&gt;yarn jar ./lib/&amp;lt;my&amp;gt;.jar &amp;lt;mapreduce driver class name&amp;gt; &amp;lt;input file name&amp;gt; &amp;lt;output hdfs dir name&amp;gt; &amp;lt;properties file&amp;gt;
&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;hadoop jar ./lib/&amp;lt;my&amp;gt;.jar &amp;lt;mapreduce driver class name&amp;gt; &amp;lt;input file name&amp;gt; &amp;lt;output hdfs dir name&amp;gt; &amp;lt;properties file&amp;gt;
&lt;/PRE&gt;&lt;P&gt;Same result with both.  Except with the second I get a warning message &lt;/P&gt;&lt;BLOCKQUOTE&gt; WARNING: Use "yarn jar" to launch YARN applications.&lt;/BLOCKQUOTE&gt;&lt;P&gt;I see nothing in the resource manager (http://&amp;lt;&amp;gt;:8088) or node manager (http://&amp;lt;&amp;gt;:8042) UI     &lt;/P&gt;&lt;P&gt;According to &lt;A href="http://hortonworks.com/blog/simplifying-user-logs-management-and-access-in-yarn/"&gt;Simplifying user-logs management and access in YARN&lt;/A&gt;, I should be using Application Ids with the yarn commands.  But where are these Application Ids set when I invoke the Map Reduce program as I do above?&lt;/P&gt;&lt;P&gt;Secondly how am I setting properties like
  yarn.nodemanager.log-dirs
By default it's  ${yarn.log.dir}/userlogs
Where is ${yarn.log.dir} set?&lt;/P&gt;&lt;P&gt;I think this is what I'm missing (along with how to set/get an application Id from a MapReduce program).&lt;/P&gt;&lt;P&gt;I think I'm missing something obvious so a nudge in the right direction would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:39:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133111#M31528</guid>
      <dc:creator>milind_rao</dc:creator>
      <dc:date>2016-06-11T00:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find the MapReduce Log files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133112#M31529</link>
      <description>&lt;P&gt;can you check with yarn logs -applicationId &amp;lt;application ID&amp;gt; &lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 00:48:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133112#M31529</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-11T00:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find the MapReduce Log files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133113#M31530</link>
      <description>&lt;P&gt;Rajkumar, that's the problem I have.  Where do I get the Application Id from?  Is there some different command that I need to use to start the MapReduce job or some flags I need to use?  The same job used to work in MapR hadoop 1 with the logs going to the syslog directory.  In Ambari, I'm seeing no applications at all. &lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 01:13:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133113#M31530</guid>
      <dc:creator>milind_rao</dc:creator>
      <dc:date>2016-06-11T01:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find the MapReduce Log files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133114#M31531</link>
      <description>&lt;P&gt;SOLVED!&lt;/P&gt;&lt;P&gt;I was using hadoop dependency of 1.2.1. Even after I changed the dependency to 2.2.0, I was still running into issues.  I made some other changes but they don't seem to be relevant.&lt;/P&gt;&lt;P&gt;I wasn't getting these lines earlier.&lt;/P&gt;&lt;PRE&gt;16/06/10 23:10:08 INFO mapreduce.JobSubmitter: number of splits:1
16/06/10 23:10:08 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1465582268359_0017
16/06/10 23:10:09 INFO impl.YarnClientImpl: Submitted application application_1465582268359_0017
16/06/10 23:10:09 INFO mapreduce.Job: The url to track the job: &lt;A href="http://sandbox.hortonworks.com:8088/proxy/application_1465582268359_0017/" target="_blank"&gt;http://sandbox.hortonworks.com:8088/proxy/application_1465582268359_0017/&lt;/A&gt;
&lt;/PRE&gt;&lt;P&gt;I wrote the &lt;A href="https://hadoop.apache.org/docs/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html"&gt;sample app&lt;/A&gt;.  And when that worked, just started plugging away at the differences with my app and realized that my hadoop version was incorrect.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 06:17:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133114#M31531</guid>
      <dc:creator>milind_rao</dc:creator>
      <dc:date>2016-06-11T06:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't find the MapReduce Log files</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133115#M31532</link>
      <description>&lt;P&gt;Hi Milind Rao. You can use Ambari -&amp;gt; YARN -&amp;gt; Quick Links -&amp;gt; ResourcesManager UI for ApplicationId&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 22:26:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-t-find-the-MapReduce-Log-files/m-p/133115#M31532</guid>
      <dc:creator>erkansirin78</dc:creator>
      <dc:date>2017-11-30T22:26:03Z</dc:date>
    </item>
  </channel>
</rss>

