Yeah I do think that what you're asking is a very legit request and it appears that parameter providers cannot be leveraged in the context of MiNiFi. We definitely need to create a properties file based parameter provider and improve the way MiNiFi can leverage parameter providers (possibly by forcing the reload of the parameters when the agent is starting).
Le mer. 29 nov. 2023 à 18:09, Nicola Tuveri <[email protected]> a écrit : > Hello Ferenc, > Thanks for your helpful reply. > I was hoping to be able to pass the parameters in a Java properties file. > This option would have the advantage of being independent of the operating > system compared to environment variables. > Anyway, the option you've suggested is a viable solution to my question. > > Thanks again! > > Regards, > Nicola Tuveri > > > > > On Wed, Nov 29, 2023 at 4:15 PM Ferenc Erdei <[email protected]> wrote: > >> Hello Nicola, >> >> Apache MiNiFi provides a powerful Expression Language that allows you to >> dynamically configure properties using expressions. This includes the >> ability to reference environment variables. To do this, set property value >> using Expression Language: eg.: ${MY_VARIABLE} With this, the defined >> properties can be used as defined in each instance. >> >> You can read more about the NiFi Expression Language syntax here: >> https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html >> >> Regards, >> Ferenc Erdei >> >> On 2023/11/27 18:03:11 Nicola Tuveri wrote: >> > Hi there, >> > >> > I'm looking for a way to configure multiple instances of MiNiFi. All >> > instances should be configured with the same data flow (i.e. the same >> data >> > flow config file) except for some parameters that are specific to each >> > instance. >> > >> > I know that Variables and the nifi.variable.registry.properties >> property >> > are deprecated and will be removed in the upcoming 2.0 version of NiFi. >> > >> > Does MiNiFi support the provision of external parameters, something >> like a >> > ParameterContext? >> > >> > Are there any alternatives to the nifi.variable.registry.properties >> feature? >> > >> > Thanks! >> > >> >
