<?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: oozie- attach the job logs to email (email action) in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34275#M10829</link>
    <description>&lt;P&gt;Oozie Rest APIs to the resucue (Which Hue too uses)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one can write a shell or .ksh which captures external_Id and its related launcher attemp ids, and get the logs of individual attemp ids.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We did the later one.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Nov 2015 19:35:06 GMT</pubDate>
    <dc:creator>naane</dc:creator>
    <dc:date>2015-11-20T19:35:06Z</dc:date>
    <item>
      <title>oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34261#M10828</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to attach or add in the content of the email (email action in oozie) the job logs? (the logs from all the actions of the job)&lt;/P&gt;&lt;P&gt;I didn't find&amp;nbsp;any wf parameter that could help ..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:49:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34261#M10828</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2022-09-16T09:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34275#M10829</link>
      <description>&lt;P&gt;Oozie Rest APIs to the resucue (Which Hue too uses)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one can write a shell or .ksh which captures external_Id and its related launcher attemp ids, and get the logs of individual attemp ids.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We did the later one.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 19:35:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34275#M10829</guid>
      <dc:creator>naane</dc:creator>
      <dc:date>2015-11-20T19:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34497#M10830</link>
      <description>&lt;P&gt;Thank you for your answer. I will try to do a schell script for gathering the logs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, is there a way to add the logs in the attachement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alina&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2015 10:32:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34497#M10830</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-11-27T10:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34995#M10831</link>
      <description>&lt;P&gt;email action has &amp;lt;attachment&amp;gt; element which can be used to attach an hdfs file or a comma sperated hdfs files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, make sure the logs are added/put to an hdfs file/files before attaching thereof.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 20:00:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/34995#M10831</guid>
      <dc:creator>naane</dc:creator>
      <dc:date>2015-12-09T20:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35082#M10832</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw that there is an attachement element, however, I cannot add it in hue...&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 07:41:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35082#M10832</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-12-11T07:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35096#M10833</link>
      <description>&lt;P&gt;Could be related to CDH version/environment as mentioned &lt;A href="http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_rn_new_in_550.html" target="_self"&gt;here&lt;/A&gt;. and its&amp;nbsp;related &lt;A href="https://issues.apache.org/jira/browse/OOZIE-2160" target="_self"&gt;jira&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, if possible take a chance&amp;nbsp;to edit manually your workflow for the&amp;nbsp;email action to include &amp;lt;attachment&amp;gt;.. element and check whether attachment functionality works fine for your CDH environment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 16:48:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35096#M10833</guid>
      <dc:creator>naane</dc:creator>
      <dc:date>2015-12-11T16:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35201#M10834</link>
      <description>&lt;P&gt;You were right, this is linked to :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://issues.apache.org/jira/browse/OOZIE-2160" target="_blank"&gt;OOZIE-2160&lt;/A&gt; - Oozie email action now supports attachments with an &amp;lt;attachment&amp;gt; element&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in CDH 5.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2015 13:28:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35201#M10834</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-12-14T13:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35241#M10835</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I told myself that if I cannot add an attachement, I'll just add a link to my log files from HDFS.&lt;/P&gt;&lt;P&gt;So I did a :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;yarn application -list -appStates FINISHED&lt;/STRONG&gt; |grep 'my_workflow_name' |grep -Po 'application_\d+_\d+' | sed 's/.*application://' | tail -n 1&lt;/PRE&gt;&lt;P&gt;in order to find the application id ($my_application_id) that I needed. Afterwards I wanted to do a :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;yarn logs -applicationId $my_application_id&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;However,&amp;nbsp;this doesn't return any logs if it is not executed with a user that has the rights to read the logs. So I wanted to change it into:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;sudo -u hdfs&lt;/STRONG&gt; yarn logs -applicationId $application_id&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;but then I got the ERROR:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt; sudo: sorry, you must have a tty to run sudo&lt;/STRONG&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a proper way to find out the logs without changing the level of securiyt security?&lt;/P&gt;&lt;P&gt;(&lt;A href="http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password" target="_blank"&gt;http://unix.stackexchange.com/questions/122616/why-do-i-need-a-tty-to-run-sudo-if-i-can-sudo-without-a-password&lt;/A&gt; )&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 07:48:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35241#M10835</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-12-15T07:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35243#M10836</link>
      <description>On non-kerberized (insecure) clusters, you can do the below:&lt;BR /&gt;&lt;BR /&gt;export HADOOP_USER_NAME=username&lt;BR /&gt;[command]&lt;BR /&gt;&lt;BR /&gt;For ex:&lt;BR /&gt;&lt;BR /&gt;export HADOOP_USER_NAME=hdfs&lt;BR /&gt;yarn logs -applicationId $application_id&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Dec 2015 08:45:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35243#M10836</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2015-12-15T08:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35267#M10837</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to do :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;export HADOOP_USER_NAME=my_user
load_events=`yarn logs -applicationId $application_id` &lt;/PRE&gt;&lt;P&gt;I also tried:&lt;/P&gt;&lt;PRE&gt;export HADOOP_USER_NAME=hdfs
load_events=`yarn logs -applicationId $application_id` &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I get :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Logs not available at /tmp/logs/hdfs/logs/application_1449728267224_0138 Log aggregation has not completed or is not enabled.&lt;/PRE&gt;&lt;P&gt;And this is the message that I get when I do this command with un unauthorised user..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 15:51:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35267#M10837</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-12-15T15:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35337#M10838</link>
      <description>&lt;P&gt;can you&amp;nbsp;see the&amp;nbsp;application ID logs in your "http://&amp;lt;&amp;lt;YourHost&amp;gt;&amp;gt;:&amp;lt;&amp;lt;port&amp;gt;&amp;gt;/cluster/apps"??&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2015 21:56:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35337#M10838</guid>
      <dc:creator>naane</dc:creator>
      <dc:date>2015-12-16T21:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: oozie- attach the job logs to email (email action)</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35354#M10839</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I can see my application_id logs . However, frstly it shows the message :&lt;/P&gt;&lt;PRE&gt;Logs not available at /tmp/logs/hdfs/logs/application_1449728267224_0138 Log aggregation has not completed or is not enabled.&lt;/PRE&gt;&lt;P&gt;and then it recharge the page and it shows the good logs:&lt;/P&gt;&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.3.5-1.cdh5.3.5.p0.4/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/disk2/yarn/nm/filecache/7107/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Dec 15, 2015 10:16:44 AM com.google.inject.servlet.InternalServletModule$BackwardsCompatibleServletContextProvider get
WARNING: You are attempting to use a deprecated API (specifically, attempting to @Inject ServletContext inside an eagerly created singleton. While we allow this for backwards compatibility, be warned that this MAY have unexpected behavior if you have more than one injector (with ServletModule) running in the same JVM. Please consult the Guice documentation at http://code.google.com/p/google-guice/wiki/Servlets for more information.
Dec 15, 2015 10:16:44 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.mapreduce.v2.app.webapp.JAXBContextResolver as a provider class
Dec 15, 2015 10:16:44 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering org.apache.hadoop.yarn.webapp.GenericExceptionHandler as a provider class
Dec 15, 2015 10:16:44 AM com.sun.jersey.guice.spi.container.GuiceComponentProviderFactory register
INFO: Registering 
.......

(What I'm searching for..)&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Alina&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 09:38:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-attach-the-job-logs-to-email-email-action/m-p/35354#M10839</guid>
      <dc:creator>AlinaGHERMAN</dc:creator>
      <dc:date>2015-12-17T09:38:06Z</dc:date>
    </item>
  </channel>
</rss>

