shell - Oozie email action attachment -
i trying hdfs location , provide email attachment oozie email action. hdfs location can found using shell action. how can pass output of shell action, hdfs path oozie email action. can achieved using oozie?
<workflow-app name="[wf-def-name]" xmlns="uri:oozie:workflow:0.1"> ... <action name="[node-name]"> <email xmlns="uri:oozie:email-action:0.2"> <to>[comma-separated-to-addresses]</to> <subject>[subject]</subject> <body>[body]</body> <content_type>[content-type]</content_type> **<attachment>[comma-separated-hdfs-file-paths]</attachment>** </email> <ok to="[node-name]"/> <error to="[node-name]"/> </action> ... </workflow-app>
see comment, others checking issue, answer is: capture output of shell action
<capture-output/> and pass param email action
<attachment>${wf:actiondata('shell_action')['path']}</attachment> for detail check link in comment.
Comments
Post a Comment