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: Flowfiles active in a processgroup

Highlighted

NiFi: Flowfiles active in a processgroup

Rising Star

I am probably throwing this out a little early without looking in detail the documentation. I am wondering if anyone had used the Rest API's to identify the flowfiles active within a particular processgroup, OR perhaps if you could advise on the appropriate Rest API's that can be utilized to identify.

One additional question, our environment NiFi is kerberized, does the Rest API require authentication and do we need to maintain the token somewhere in the cache to make additional API calls.

Objective: Need to make sure that no flowfile is stuck in a particular process group

1 REPLY 1

Re: NiFi: Flowfiles active in a processgroup

You can use GET /flow/process-groups/{id}/status Gets the status for a process group

The status for a process group includes status for all descendent components. When invoked on the root group with recursive set to true, it will return the current status of every component in the flow.

e.g.

http://<host>:<port>/nifi-api//flow/process-groups/{id}/status

For active flow you get "runStatus":"Running" and for inactive one "runStatus":"Stopped"