[
https://issues.apache.org/jira/browse/NIFI-4200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16096218#comment-16096218
]
ASF GitHub Bot commented on NIFI-4200:
--------------------------------------
Github user pvillard31 commented on the issue:
https://github.com/apache/nifi/pull/2022
Hey @trixpan. Just pushed a new commit with the following modifications:
- Renamed the processor to ControlNiFiComponent
- Allow the user to control processor, process group, controller service,
reporting task
- Allow the user to defined dynamic properties (with EL allowed) that will
be used to update the configuration of the target component
This would, for instance, allow a user to define a web service to download
files with something like:
HandleHttpRequest -> ControlNiFiComponent -failure-> HandleHttpResponse
GetHDFS -> HandleHttpResponse
This way, a user could send a HTTP request with the path of the file to
download, the ControlNiFiComponent is used to start/stop the GetHDFS processor
with the path to set in the processor, and the file is sent back to the user.
I believe this would cover NIFI-890.
> Consider a ControlNiFi processor
> --------------------------------
>
> Key: NIFI-4200
> URL: https://issues.apache.org/jira/browse/NIFI-4200
> Project: Apache NiFi
> Issue Type: New Feature
> Components: Extensions
> Reporter: Pierre Villard
> Assignee: Pierre Villard
>
> We frequently see on the mailing list the need to start/stop a processor
> based on incoming flow files. At the moment, that's something that can be
> scripted or that can be done using multiple InvokeHttp processors but it
> requires a bit of work.
> Even though it is not really in the "NiFi way of thinking", it would be
> interesting to have a processor with the following parameters:
> - NiFi REST API URL
> - Username
> - Password
> - Processor UUID (with expression language)
> - Action to perform (START, STOP, START/STOP, STOP/START)
> - Sleep duration (between the START and STOP calls when action is START/STOP,
> or STOP/START)
> That would be helpful in use cases like:
> - start a workflow based on another workflow
> - start a processor not accepting incoming relationship based on a flow file
> - restart a processor to "refresh" its configuration when the processor
> relies on configuration files that could be changed
> - have a "start once" behavior
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)