Created on 10-15-2017 06:06 AM - edited 08-17-2019 07:22 PM
Hi Everyone,
I am using invokeHTTP Processor. When I down the server, the flow is not going to failure mechanism. I want to retry the connection when the server goes down. So I wrote my retry mechanism under failure relationship. But the failure flow is not trigerred, instead it gives the error in the bulletin(when the retry mechanism is failed after the configured number of times, I can refer this bulletin and display the error to user. But for now I want to implement the retry mechanism). Can someone help me out with this case/scenario. Please find the attachment files.
For retry logic I have used the suggestion mentioned under https://community.hortonworks.com/questions/77336/nifi-best-practices-for-error-handling.html
Thanks,
Created 10-15-2017 08:46 AM
It looks like your flow is never triggered. InvokeHTTP is waiting for an incoming flow file that will be added to the body of your http call. Add a GenerateFlowFile before your invoke just to trigger it. You should see flow files going to failure relationship.
Can you test that ?
Created 10-15-2017 08:46 AM
It looks like your flow is never triggered. InvokeHTTP is waiting for an incoming flow file that will be added to the body of your http call. Add a GenerateFlowFile before your invoke just to trigger it. You should see flow files going to failure relationship.
Can you test that ?
Created 10-16-2017 05:18 AM
Hi @Abdelkrim Hadjidj, @Matt Clarke
Thanks a lot for your help. I was struggling for this for a while before I post this question and this is what I needed.
Created 07-12-2019 03:01 PM
I am still facing the same issue , the failure does not go through failure mechanism. How to use GenerateFlowFile, what is the purpose?
Created 07-14-2019 04:58 PM
The above question and the entire response thread below were originally posted in the Community Help track. On Sun Jul 14 16:56 UTC 2019, a member of the HCC moderation staff moved it to the Data Ingestion & Streaming track. The Community Help Track is intended for questions about using the HCC site itself.