nifi-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryan Bende <bbe...@gmail.com>
Subject Re: Referencing a property from nifi.properties into a processor.
Date Thu, 19 Apr 2018 13:19:46 GMT
You can also set system properties in bootstrap.conf, this was the
primary way of setting up variables before either of the variable
registries existed.

java.arg.123=-Dmyvar=myvalue

On Thu, Apr 19, 2018 at 8:41 AM, Matt Burgess <mattyb149@apache.org> wrote:
> If you are using a version of NiFi that has ExecuteScript, you could
> write a script that reads in the properties from that file and create
> flow file attributes from them, then for downstream processors that
> accept incoming flow files and evaluate Expression Language against
> them, you'll be able to refer to those "properties" in the expression.
>
> Regards,
> Matt
>
> On Thu, Apr 19, 2018 at 4:54 AM, saloni udani <saloniudani.23@gmail.com> wrote:
>> Hi
>>
>> There are two ways to use and manage custom properties in NiFi:
>>  -In the NiFi UI via the Variables window
>>  -Referencing custom properties via 'nifi.properties'
>>
>> But I am using older version of NiFi which doesn't have variable registry
>> support.So is it possible to refer to the properties from nifi.properties
>> directly (without setting nifi.variable.registry.properties) in the
>> processor property which supports expression language?
>>
>> E.g If I want to use 'nifi.cluster.node.address' from nifi.properties as a
>> value to a processor’s property ${nifi.cluster.node.address}
>>
>>
>> Thank you

Mime
View raw message