Reply
Explorer
Posts: 9
Registered: ‎02-05-2016

Cannot send email attachement from Oozie on CDH 5.5.1

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"/>

 

Posts: 1,824
Kudos: 406
Solutions: 292
Registered: ‎07-31-2013

Re: Cannot send email attachement from Oozie on CDH 5.5.1

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
Announcements