mattyb149 commented on PR #6075:
URL: https://github.com/apache/nifi/pull/6075#issuecomment-1136027696

   To set up the MiNiFi Java agent's C2 capability, add the following section 
to bootstrap.conf:
   
   ```
   
nifi.minifi.notifier.ingestors=org.apache.nifi.minifi.bootstrap.configuration.ingestors.FileChangeIngestor
   nifi.minifi.notifier.ingestors.file.config.path=./conf/config-new.yml
   nifi.minifi.notifier.ingestors.file.polling.period.seconds=5
   c2.enable=true
   c2.config.directory=./conf
   c2.runtime.manifest.identifier=minifi
   c2.runtime.type=minifi-java
   c2.rest.url=http://localhost:10090/c2/config/api/c2-protocol/heartbeat
   c2.rest.url.ack=http://localhost:10090/c2/config/api/c2-protocol/acknowledge
   c2.agent.heartbeat.period=5000
   c2.agent.identifier=123-456-789
   c2.agent.class=java
   ```
   
   This sets up a FileChangeIngestor to watch for changes in 
conf/config-new.yml, which is where the agent currently persists the flow 
update coming from a C2 server. Under NIFI-9667 (and NIFI-9428 at a higher 
level) the agent will restart the flow without involving a separate file and 
FileChangeIngestor.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to