Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cannot send email attachement from Oozie on CDH 5.5.1

Cannot send email attachement from Oozie on CDH 5.5.1

Explorer

I am trying to send an email attachment from Hue browser on CDH 5.5 I am getting error for not recognizing attachment tag. I know OOZIE-2160 has fixed this issue on CDH5.5. Error re-running workflow 0000006-160921134749647-oozie-oozi-W.E0701: XML schema error, cvc-complex-type.2.4.d: Invalid content was found starting with element 'attachment'. No child element is expected at this

<action name="email-b5ff">
<email xmlns="uri:oozie:email-action:0.1">
<to>test@abc.com</to>
<subject>attachment email</subject>
<body>Email is available</body>
<attachment>[hdfs://xxx:8020/user/eng/Report.text]</attachment>
</email>
<ok to="End"/>

 

1 REPLY 1

Re: Cannot send email attachement from Oozie on CDH 5.5.1

Master Guru
Attachments are supported in Oozie's email schema from 0.2 onwards. Change this part:

<email xmlns="uri:oozie:email-action:0.1">

To:

<email xmlns="uri:oozie:email-action:0.2">

X-Ref: http://archive.cloudera.com/cdh5/cdh/5/oozie/DG_EmailActionExtension.html