[NIFI-9667] Initial UPDATE configuration via C2#21
Conversation
| } | ||
| } | ||
|
|
||
| public void startChangeNotifier() { |
There was a problem hiding this comment.
This is just a temporary solution to make this PR work the proper solution will come later in another PR.
| } | ||
| } | ||
|
|
||
| Optional.ofNullable(bootstrapProperties) |
There was a problem hiding this comment.
This is the code that is borrowed from @ferencerdei 's upcoming PR
| return processGroupStatus; | ||
| } | ||
|
|
||
| private boolean updateFlowContent(ByteBuffer updateContent) { |
There was a problem hiding this comment.
For now this is the file write + restart approach. As it is not final and we will go with flowController / flowService based reload I tried to keep it as simple as possible.
c164815 to
d1ff8e5
Compare
|
|
||
| private static final Logger logger = LoggerFactory.getLogger(C2Properties.class); | ||
|
|
||
| public static final String NIFI_PREFIX = "nifi."; |
There was a problem hiding this comment.
I'm wondering if we need the nifi prefix here, since it's in the c2 module and not technically NiFi-specific. If that would cause too many issues downstream, I'm ok with leaving it in.
There was a problem hiding this comment.
I agree, removed the nifi prefix as at the c2 level it has "no meaning". To run it you need to remove the nifi. prefixes in the bootstrap conf example I added to this pr
* NIFI-9666: Initial commit of C2 client implementation * [NIFI-9667] Initial UPDATE configuration via C2 * [NIFI-9667] Rebase to latest NIFI-9666 * [NIFI-9667] Module cleanup * [NIFI-9667] Addressing PR comment removing nifi prefix from properties Co-authored-by: Matthew Burgess <mattyb149@apache.org>
* NIFI-9666: Initial commit of C2 client implementation * [NIFI-9667] Initial UPDATE configuration via C2 * [NIFI-9667] Rebase to latest NIFI-9666 * [NIFI-9667] Module cleanup * [NIFI-9667] Addressing PR comment removing nifi prefix from properties Co-authored-by: Matthew Burgess <mattyb149@apache.org>
* NIFI-9666: Initial commit of C2 client implementation * [NIFI-9667] Initial UPDATE configuration via C2 * [NIFI-9667] Rebase to latest NIFI-9666 * [NIFI-9667] Module cleanup * [NIFI-9667] Addressing PR comment removing nifi prefix from properties Co-authored-by: Matthew Burgess <mattyb149@apache.org>
* NIFI-9666: Initial commit of C2 client implementation * [NIFI-9667] Initial UPDATE configuration via C2 * [NIFI-9667] Rebase to latest NIFI-9666 * [NIFI-9667] Module cleanup * [NIFI-9667] Addressing PR comment removing nifi prefix from properties Co-authored-by: Matthew Burgess <mattyb149@apache.org>
[NIFI-9667] Initial UPDATE configuration via C2 (#21) * NIFI-9666: Initial commit of C2 client implementation * [NIFI-9667] Initial UPDATE configuration via C2 * [NIFI-9667] Rebase to latest NIFI-9666 * [NIFI-9667] Module cleanup * [NIFI-9667] Addressing PR comment removing nifi prefix from properties Co-authored-by: Matthew Burgess <mattyb149@apache.org>
[NIFI-9667] Initial UPDATE configuration via C2 (#21) * NIFI-9666: Initial commit of C2 client implementation * [NIFI-9667] Initial UPDATE configuration via C2 * [NIFI-9667] Rebase to latest NIFI-9666 * [NIFI-9667] Module cleanup * [NIFI-9667] Addressing PR comment removing nifi prefix from properties Co-authored-by: Matthew Burgess <mattyb149@apache.org>
Disclaimer: There were / are a few things that needs to be addressed:
If you want to try it a reference bootstrap configuration:
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
nifi.c2.enable=true
nifi.c2.config.directory=./conf
nifi.c2.runtime.manifest.identifier=minifi
nifi.c2.runtime.type=minifi-java
nifi.c2.rest.url=http://localhost:10090/efm/api/c2-protocol/heartbeat
nifi.c2.rest.url.ack=http://localhost:10090/efm/api/c2-protocol/acknowledge
nifi.c2.agent.heartbeat.period=5000
nifi.c2.agent.identifier=123-456-789
nifi.c2.agent.class=java-new