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

查看:33
本文介绍了如何动态更新 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.

在这些 wiki 页面中捕获了一些与未来设计理念相关的信息:

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天全站免登陆