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.

Nifi Flowfile Attributes not accessible via MonitorActivity -> PutEmail

Highlighted

Nifi Flowfile Attributes not accessible via MonitorActivity -> PutEmail

Rising Star

For some reason, flowfile attributes that are accessible throughout the rest of the flow are not accessible when going through the MonitorActivity processor and PutEmail processor. The idea is to take a user created attribute that works throughout the rest of the flow and put it in an email message after MonitorAlert triggers. Has anyone seen this behavior? Below are screenshot to assist in troubleshooting.

Relevant portion of FlowFile

21446-screen-shot-2017-07-27-at-110914-am.png

Config of MonitorActivity

21448-monitoract.png

Config for PutEmail

21451-putemail.png

Data Provenance showing HOST attribute in Create Filename, the processor right before MonitorActivity

21449-createfndp.png

Data Provenance for Monitor Activity showing how HOST isn't shown

21450-monactdp.png

1 REPLY 1

Re: Nifi Flowfile Attributes not accessible via MonitorActivity -> PutEmail

Explorer

It looks like the file where you are looking for the attribute of "host" is the file that is generated by the "Monitor Activity" processor, not the other file that is being sent into the Monitor activity processor (the one that has the host attribute).

To fix this just add an update attribute processor after the "Monitor Activity" processor and create the host attrbiute and pass that into the put email.

Hope this help!

NiFi FTW!

Don't have an account?
Coming from Hortonworks? Activate your account here