Created 11-01-2017 12:56 PM
@matt burgess
Created 11-01-2017 01:31 PM
Thanks for the clarification. I misunderstood your question.
You can use NIFI rest API to get the list of your connections with this endpoint /process-groups/{id}/connections
And loop over them and empty each connection with this endpoint /flowfile-queues/{id}/drop-requests
Created on 11-01-2017 01:07 PM - edited 08-18-2019 12:59 AM
Created 11-01-2017 01:20 PM
Hi, Thanks for the suggestion, but doing this thing for 5o flows is very time consuming, i was looking for an alternative if we can empty the queues of a particular Process group all at once, may be from nifi backend using some api?
Created 11-01-2017 01:31 PM
Thanks for the clarification. I misunderstood your question.
You can use NIFI rest API to get the list of your connections with this endpoint /process-groups/{id}/connections
And loop over them and empty each connection with this endpoint /flowfile-queues/{id}/drop-requests
Created 11-01-2017 01:48 PM
I just tried the following call on my NiFi:
You can put this logic inside a script and use Curl to call NiFi API.
I hope this helps
Created 11-09-2017 11:17 AM
@Abdelkrim Hadjidj Thanks a lot for your inputs into this, i will try this, i think this will surely solve my issue.