Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 05-11-2017 02:53 AM
Hi All,
I have seen this article by @Yolanda M. Davis and this pretty much explains how to read static property file in NiFi and use these values within the flow. However, since the properties on Hive Connection pooling service doesn't support expression languages, I think we may not be able to use this approach here.
Having to migrate templates across environments, is there an approach to externalize the DHCP properties like keytab file, principal, jdbc url etc?
Thanks
-ak-
Created 05-11-2017 03:17 PM
Since a template is XML, you could use an XSLT to replace the values for those properties. Alternatively, scripting languages such as Python and Groovy can handle XML fairly easily, you could write a script to replace the values.
Ideally these properties would support Expression Language, I have written NIFI-3867 to cover this improvement.
Created 05-11-2017 03:17 PM
Since a template is XML, you could use an XSLT to replace the values for those properties. Alternatively, scripting languages such as Python and Groovy can handle XML fairly easily, you could write a script to replace the values.
Ideally these properties would support Expression Language, I have written NIFI-3867 to cover this improvement.
Created 05-11-2017 03:26 PM
Thanks @Matt Burgess. Wanted to be sure if "replace" on the template was a dirty fix.