如何动态更新Nifi中的variable.registry.properties? [英] How to update variable.registry.properties in Nifi on the fly?

查看:189
本文介绍了如何动态更新Nifi中的variable.registry.properties?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

变量注册表属性是为了促进软件开发生命周期而添加到Nifi的功能.这意味着您可以在单独的开发环境中开发流程,并利用nifi.variable.registry.properties属性中指定的自定义属性文件以及表达式语言来在处理器配置中使用变量.然后,您可以将流程与自定义属性文件一起导出为模板,并将其推送到生产环境中.但是,一旦启动Nifi的生产实例,就无法修改您的自定义属性文件.这意味着,如果要向生产中添加第二个流程,则需要停止实例,更新定制属性文件并上载第二个流程的模板,然后重新启动服务器.这使自定义属性文件更像与实例(nifi实例)相关,而与流无关.因此,我的问题是,有没有一种方法可以动态更新自定义属性文件,而不必每次想添加新流程时都重新启动Nifi?

The variable registry properties is a functionality that was added to Nifi in order to promote software developement life cycle. Meaning that you can develop your flows in a separate developement environement and take advantage of the custom properties files specified in the nifi.variable.registry.properties property alongside with expression language to use variables in the processors configurations. Then you can export your flows as templates together with your custom properties files and push them to a production environement. However once the production instance of Nifi is started it is not possible to modify your custom properties files. This means that if you want to add a second flow to your production, you need to stop the instance, update the custom properties files and upload the second flow's template, and then restart the server. This makes custom properties files more like instance (nifi instance) related and not flow related. My question is thus, is there a way to update custom properties files on the fly without having to restart Nifi each time you want to add a new flow ?

希望我的问题很清楚,请随时澄清

Hope my question is clear, don't hesitate to ask for clarification

推荐答案

当前的变量注册表功能需要重新启动,并且无法即时更新.

The current variable registry capability requires a restart and cannot be updated on the fly.

社区已计划建立更高级的变量注册表功能,以及围绕流的版本控制/部署的功能,正如您所提到的,两者都可以结合在一起.

The community has plans to build out more advanced variable registry capabilities, as well as capabilities around versioning/deploying of flows, which both tie together as you mentioned.

这些维基页面中捕获了一些有关未来设计思想的相关信息:

Some relevant information for future design ideas is captured in these wiki pages:

https://cwiki.apache.org/confluence/display/NIFI/变量+注册表 https://cwiki.apache.org/confluence/display/NIFI/Configuration + Management + of + Flows

可以通过在Wiki页面上提供评论或发送电子邮件至dev@nifi.apache.org随意加入讨论,我们很乐意收集所有反馈.

Feel free to join in the discussion by providing comments on the wiki page, or shooting a note to dev@nifi.apache.org, we would love to capture all feedback.

这篇关于如何动态更新Nifi中的variable.registry.properties?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆