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.

Stop nifi Flow Automatically when query fail

Stop nifi Flow Automatically when query fail

New Contributor

I have a nifi flow to do transformation in hive , I am executing 100 query one by one . but if any query fail between 1 to 100 .still flow is executing . I want to stop the flow automatically once any query fail.

Please advice on above. Thanks In advance.

1 REPLY 1
Highlighted

Re: Stop nifi Flow Automatically when query fail

Explorer

You have 100 flow files? Perhaps you can use wait and notify processors and release 1 flow file each time. If query is successfull then signal to release fliw file to perform next query, if not then signal to release to failure using route on attribute processor which will come after the wait processor.

Something similar to this sample:

https://gist.github.com/ijokarumawak/375915c45071c7cbfddd34d5032c8e90

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