I have 3 node NIFI cluster with external zookeeper cluster.I have updated the customer properties file location in nifi.properties file on 3 NIFI nodes.Attached nifi properties file screenshot.I restarted all nodes after modifying nifi properties file.I am not able to access these custom properties in nifi flow.
Here is the sample expression I used to map custome properties to NIFI flow attributes
Please help me to resolve this.
Not able to reproduce the same exact issue on my instance.
1.Could you please make sure the path's are exact to the afflication.properties and exceptions.properties files.
2. Make sure you are having configdb_url value in the format below in your .properties file
Then once you restart the NiFi cluster then nifi able to load these properties files.
3. we can access the variables by using nifi expression language as you have mentioned above.
return value as
In addition it's better to use DistributeCacheMap processors to store your .properties file and use FetchDistributeMapCache processor to pull the the required key from the Distributecache.
GetFile //keep Source File to true
SplitText //to split each line ExtractText //extract the key name
PutDistributeMapCache //store based on key name
FetchDIstributeCache you can fetch based on the key name, By using this way you don't need to restart the NiFi cluster everytime if you want to change/modify the .properties file.
If you are having handful number of key values in .properties you can leverage variable registry by using UI/RestApi to add them to nifi instance, this registry also doesn't require any restart of nifi cluster.