在运行时重新加载 authorizers.xml 文件 [英] Reload authorizers.xml file at runtime

查看:52
本文介绍了在运行时重新加载 authorizers.xml 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在运行时重新加载初始管理员身份配置.有没有办法实现这一点.

I want to reload initial admin identity configuration at runtime. Is there any option to achieve this.

考虑这种情况,如果我使用 Kerberos 在安全模式下配置了 NiFi 并且没有提供初始管理员".所以我无法与任何用户登录 NiFi.我想在 NiFi 启动后更新 authorizers.xml 中的管理配置并在运行时重新加载文件.我怎样才能做到这一点?

Consider the case, If i have configured NiFi in secure mode using Kerberos and doesn't provided "Initial Admin". So i cannot login into NiFi with any user. I want to update the admin configuration in authorizers.xml after NiFi started and reload the file in runtime. How can i achieve this?

给我一​​个成功的解决方案或想法.

Give me a solution or idea to make it succeeded.

推荐答案

如果不重新启动应用程序,您将无法重新加载初始管理员标识.最初配置 NiFi 时,在 authorizers.xml 中提供主体作为 IAI,然后启动应用程序.如果您还没有这样做,请停止应用程序,修改 authorizers.xml,然后重新启动应用程序.

You cannot reload the Initial Admin Identity without restarting the application. When you initially configure NiFi, provide the principal as the IAI in authorizers.xml and then start the application. If you have not done this, stop the application, modify authorizers.xml, and restart the application.

拥有可以登录的IAI后,您可以使用NiFi中的用户管理和策略管理工具添加其他用户,而无需重新启动应用程序.

Once you have an IAI which can log in, you can use the user management and policy management tools in NiFi to add other users without having to restart the application.

这篇关于在运行时重新加载 authorizers.xml 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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