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.

How do I get the Component state of a processor say QueryDatabaseTables processor

How do I get the Component state of a processor say QueryDatabaseTables processor

New Contributor

I am using ‘QueryDatabaseTable’ processor to get records from database table, its using date as maximum-value column for state.I wanted to get the state value (date) that is shown on the UI. Component state can be found on QueryDatabaseTable->view state. I would like to retrieve the date value that "viewState" shows on the UI using the nipyapi.


Is there a function available to get the value

1 REPLY 1
Highlighted

Re: How do I get the Component state of a processor say QueryDatabaseTables processor

Super Guru

@Ash C

You can use NiFi RestAPI to get the state of the processor.

Sample Rest api call:

curl -i -X GET http://<host>:<port>/nifi-api/processors/<processor-id>/state