<?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: location of hadoop and pig logs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154032#M24234</link>
    <description>&lt;P&gt;Hello Amit,
    As you mentioned that you "need to analyse map reduce logs in order to resolve the issue."&lt;/P&gt;&lt;P&gt;    So did you check the following dir to find the mapreduce logs?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;   /var/log/hadoop-mapreduce/mapred/    (for History logs)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/var/log/hadoop-yarn/yarn   (for &lt;/STRONG&gt;hadoop-mapreduce.jobsummary.log)&lt;/P&gt;</description>
    <pubDate>Sun, 03 Apr 2016 11:55:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-04-03T11:55:46Z</dc:date>
    <item>
      <title>location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154029#M24231</link>
      <description>&lt;P&gt;My pig script failed when I am trying to do order by. I want to check the logs but I can't see the location of the logs. I got to know from the &lt;A href="http://stackoverflow.com/questions/22856958/hadoop-logs-value-of-environment-variable-hadoop-log-dir"&gt;post&lt;/A&gt; that it should be set in the file (&lt;STRONG&gt;/etc/hadoop/hadoop-env.sh&lt;/STRONG&gt;) but the file has everything commented as shown below. Does that mean it is not being written? how can I set those values to look into the logs as my scripts is failing again and again and I want to check the logs to troubleshoot it.
also my file ( &lt;STRONG&gt;hadoop-env.sh&lt;/STRONG&gt;)seems to be at different path(/etc/hadoop/conf.install) is there anything wrong ??&lt;/P&gt;&lt;P&gt;# On secure datanodes, user to run the datanode as after dropping privileges. &lt;/P&gt;&lt;P&gt;# This **MUST** be uncommented to enable secure HDFS if using privileged ports
# to provide authentication of data transfer protocol.  This **MUST NOT** be &lt;/P&gt;&lt;P&gt;# defined if SASL is configured for authentication of data transfer protocol
# using non-privileged ports. &lt;/P&gt;&lt;P&gt;#export HADOOP_SECURE_DN_USER=${HADOOP_SECURE_DN_USER}
# Where log files are stored.  $HADOOP_HOME/logs by default.
#export HADOOP_LOG_DIR=${HADOOP_LOG_DIR}/$USER
&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 08:58:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154029#M24231</guid>
      <dc:creator>amit_29sharmait</dc:creator>
      <dc:date>2016-04-03T08:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154030#M24232</link>
      <description>&lt;P&gt;Your pig job execution is set in pig.properties file. By default, your failed job log is saved in the same directory you're in. Log file is prefixed with pig_. You can override that in Ambari configs or passing arguments at the time you execute job. Review the pig.properties section of pig wiki and here's a sample pig properties file from trunk. &lt;A href="https://svn.apache.org/repos/asf/pig/trunk/conf/pig.properties" target="_blank"&gt;https://svn.apache.org/repos/asf/pig/trunk/conf/pig.properties&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pig.apache.org/docs/r0.15.0/start.html#properties" target="_blank"&gt;https://pig.apache.org/docs/r0.15.0/start.html#properties&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 09:24:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154030#M24232</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-03T09:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154031#M24233</link>
      <description>&lt;P&gt;yes, you are right. It is creating logs into the the same file but it is when a pig script failing. It is not creating log where map reduce is failing. I need to analyse map reduce logs in order to resolve the issue.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 10:25:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154031#M24233</guid>
      <dc:creator>amit_29sharmait</dc:creator>
      <dc:date>2016-04-03T10:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154032#M24234</link>
      <description>&lt;P&gt;Hello Amit,
    As you mentioned that you "need to analyse map reduce logs in order to resolve the issue."&lt;/P&gt;&lt;P&gt;    So did you check the following dir to find the mapreduce logs?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;   /var/log/hadoop-mapreduce/mapred/    (for History logs)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/var/log/hadoop-yarn/yarn   (for &lt;/STRONG&gt;hadoop-mapreduce.jobsummary.log)&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 11:55:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154032#M24234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-03T11:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154033#M24235</link>
      <description>&lt;P&gt;Thanks this is what i was looking for.... Although this logs does not give much informaiton. Do you know if there is way to make log more readable.? or probably i'll have to ask another question.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 13:15:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154033#M24235</guid>
      <dc:creator>amit_29sharmait</dc:creator>
      <dc:date>2016-04-03T13:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154034#M24236</link>
      <description>&lt;P&gt;If you want to debug the Jobs that are failing then you might enable the DEBUG something like following:
&lt;/P&gt;&lt;P&gt;hadoop jar hadoop-mapreduce-examples.jar TestCount -Dyarn.app.mapreduce.am.log.level=TRACE -Dmapreduce.map.log.level=TRACE 
-Dmapreduce.reduce.log.level=TRACE&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 13:33:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154034#M24236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-04-03T13:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154035#M24237</link>
      <description>&lt;P&gt;Understood, it was not clear from your question, to me it sounded more like configuration question.&lt;/P&gt;</description>
      <pubDate>Sun, 03 Apr 2016 18:19:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154035#M24237</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-03T18:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154036#M24238</link>
      <description>&lt;P&gt;Can you or someone help me with the main question, I am not able to figure out the reason for job failure. after googling it i think it may be related to the variable not set ..I am adding more details about how the variables are showing null... Could you please help..&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 01:28:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154036#M24238</guid>
      <dc:creator>amit_29sharmait</dc:creator>
      <dc:date>2016-04-05T01:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154037#M24239</link>
      <description>&lt;PRE&gt;[hdfs@ bin]$ ls -lrt
total 32
-rwxr-xr-x. 1 root root 1857 Dec 15 22:25 rcc
-rwxr-xr-x. 1 root root 6594 Dec 15 22:25 hadoop.distro 
-rwxr-xr-x. 1 root root  775 Dec 15 22:26 yarn 
-rwxr-xr-x. 1 root root  782 Dec 15 22:26 mapred 
-rwxr-xr-x. 1 root root  775 Dec 15 22:26 hdfs 
-rwxr-xr-x. 1 root root  807 Dec 15 22:26 hadoop-fuse-dfs
-rwxr-xr-x. 1 root root  772 Apr  4 14:21 &lt;/PRE&gt;&lt;PRE&gt;hadoop
[hdfs@ bin]$ cat hadoop
#!/bin/bash
# Autodetect JAVA_HOME if not defined
if [ -e /usr/libexec/bigtop-detect-javahome ]; then
  . /usr/libexec/bigtop-detect-javahome
elif [ -e /usr/lib/bigtop-utils/bigtop-detect-javahome ]; then
  . /usr/lib/bigtop-utils/bigtop-detect-javahome
fi
export HADOOP_HOME=${HADOOP_HOME:-/usr/hdp/2.3.4.0-3485/hadoop}
export HADOOP_MAPRED_HOME=${HADOOP_MAPRED_HOME:-/usr/hdp/2.3.4.0-3485/hadoop-mapreduce}
export HADOOP_YARN_HOME=${HADOOP_YARN_HOME:-/usr/hdp/2.3.4.0-3485/hadoop-yarn}
export HADOOP_LIBEXEC_DIR=${HADOOP_HOME}/libexec
export HDP_VERSION=${HDP_VERSION:-2.3.4.0-3485}
export HADOOP_OPTS="${HADOOP_OPTS} -Dhdp.version=${HDP_VERSION}"
export YARN_OPTS="${YARN_OPTS} -Dhdp.version=${HDP_VERSION}"
exec /usr/hdp/2.3.4.0-3485//hadoop/bin/hadoop.distro "$@"&lt;/PRE&gt;&lt;PRE&gt;[hdfs@ip- bin]$ echo $HADOOP_HOME
[hdfs@ip-bin]$ pwd
/usr/hdp/current/hadoop-client/bin
[hdfs@ip-bin]$&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Apr 2016 01:29:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154037#M24239</guid>
      <dc:creator>amit_29sharmait</dc:creator>
      <dc:date>2016-04-05T01:29:04Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154038#M24240</link>
      <description>&lt;P&gt;provide your script.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 01:42:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154038#M24240</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-05T01:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: location of hadoop and pig logs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154039#M24241</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2942/amit29sharmait.html" nodeid="2942"&gt;@Amit Sharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can review the failed job log from ResourceManager UI.&lt;/P&gt;&lt;P&gt;Ambari &amp;gt; YARN &amp;gt; Quick Links &amp;gt; ResourceManager UI&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 23:17:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/location-of-hadoop-and-pig-logs/m-p/154039#M24241</guid>
      <dc:creator>sayankh</dc:creator>
      <dc:date>2016-04-11T23:17:36Z</dc:date>
    </item>
  </channel>
</rss>

