Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Does NiFi have a means of updateable variables/configs accessible to Expression Language?
Labels:
- Labels:
-
Apache NiFi
Guru
Created ‎10-05-2016 08:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I've seen the nifi.variable.registry.properties config, but those seem to by loaded statically and only at NiFi start.
I have a use case where connection strings and other environment settings need to be read periodically from a DataBase and used to control, for example, the hostname and directory for GetSFTP. How can I achieve this?
1 ACCEPTED SOLUTION
Guru
Created ‎10-05-2016 08:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Randy Gelhausen There are a few ways to do this.
- Use the distributed map cache to get runtime attribute lookups and re-populate it as needed with new configs.
- Use a scripted processor to lookup your config values and merge the attributes on to the FlowFile.
- I have some work in progress extending a lookup table service by @Andrew Grande that can do lookups against a properties file that is reloaded periodically. It includes a LookupAttribute processor that can merge in either specific properties or all the properties from a properties file. See: https://github.com/jfrazee/nifi-lookup-service/tree/file-based-lookup-service
1 REPLY 1
Guru
Created ‎10-05-2016 08:23 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Randy Gelhausen There are a few ways to do this.
- Use the distributed map cache to get runtime attribute lookups and re-populate it as needed with new configs.
- Use a scripted processor to lookup your config values and merge the attributes on to the FlowFile.
- I have some work in progress extending a lookup table service by @Andrew Grande that can do lookups against a properties file that is reloaded periodically. It includes a LookupAttribute processor that can merge in either specific properties or all the properties from a properties file. See: https://github.com/jfrazee/nifi-lookup-service/tree/file-based-lookup-service
