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 clear state

Highlighted

Nifi clear state

Explorer

Is there a way to clear a state of nifi? For example if i used ListS3 or Email processor. And i did some stuff, and they now now which files do they checked. Can i make them "forget"?

Also is there a way to clean up/hard restart of nifi? To forget everything except flow file about processors and controllers.

Best

Bojan

5 REPLIES 5
Highlighted

Re: Nifi clear state

Bojan, stop the processor in question, right-click -> view state -> Clear. This will depend on whether the processor uses NiFi's state api.

To clear all state and data one can stop NiFi and proceed with deleting contents of flowfile, content and provenance repository directories, then start up.

Highlighted

Re: Nifi clear state

Explorer

Hi Andrew, i tried to delete content of those directories. But still did not work. Even state of ListS3 was empty msg in debug was there is no new files yielding.

I will try to delete all those directories completely, and see what will happen.

Highlighted

Re: Nifi clear state

Explorer

I tried new installation of nifi, and just copied flowfile gz in conf. Still does not work, is the state also in components? Or just in the state state folder?

Highlighted

Re: Nifi clear state

Hi Andrew, Is there any way to automate clearing state from ListS3 processor when the flow is scheduled? I cannot clear the state every time I run the flow.

Highlighted

Re: Nifi clear state

This doesn't works for me, i places a flow.xml.gz from dev to prd cluster,cleared all repsotiories of prod but still i see state in processors.Could you please suggest other way to clear state for all processors at one go ? i tried deleting state folder contents under /nifi/conf but that too dint help,it gave me some error.

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