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.

Apache Nifi - Is it possible to reset the state of another processor in different processor by accessing state manager. in NIFI?

Apache Nifi - Is it possible to reset the state of another processor in different processor by accessing state manager. in NIFI?

New Contributor

I am using ‘QueryDatabaseTable’ processor to get records from database table, its using id(integer) as maximum-value column for state.

In some scenario , we have to reload the table records from beginning. Currently its running in MiniFi data flow, so reset the state value through UI is not possible.

To reset the state for ‘QueryDatabaseTable’ processor, planning to create new custom processor and access the state of ‘QueryDatabaseTable’ processor in custom processor and clear the state. How to get the state of another processor, as of now using process context able to access only current processor state only(context.getStateManager(); ).

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